Skip to content

Commit

Permalink
Update README.md to warn about Zalgo
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza authored Jul 14, 2024
1 parent 5c0b60b commit 6e39c86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Building data graphs with these dual-natured (sometimes async, sometimes sync) a
`jotai-derive` provides a primitive for building asynchronous data graphs
that act on values as soon as they are available (either awaiting for them, or acting on them synchronously).

Use of this utility can cause the [Release of Zalgo](https://blog.izs.me/2013/08/designing-apis-for-asynchrony/) if used improperly.
If you `store.get` a dual-natured atom manually, make sure to handle both the
asynchronous case and the synchronous case (both `await` and `soon(...)` will help).

## Recipes

### Single async dependency
Expand Down

0 comments on commit 6e39c86

Please sign in to comment.