From 6e39c867f8626d287edf6b7c4038035c71bd7ae4 Mon Sep 17 00:00:00 2001 From: Iwo Plaza Date: Sun, 14 Jul 2024 15:06:36 +0200 Subject: [PATCH] Update README.md to warn about Zalgo --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 988dd91..a40b54b 100644 --- a/README.md +++ b/README.md @@ -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