mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 20:44:05 +09:00
Ref https://github.com/nanostores/nanostores Nanostores is another open source implementation of reactive states. Supports a lot of frameworks and provides useful utilities like computed stores. Api is slightly different ``` store.get(): Value store.set(value: Value) ``` `useStore` resolves only value so I temporary added custom `useValue` to not rewrite whole project. Since we gonna use computed atoms it makes more sense to invoke useStore where atom value is used instead of reusable hook.