Compatibility with upcoming react compiler #22
Unanswered
keithkraker
asked this question in
General
Replies: 1 comment 5 replies
-
Hey! Glad to hear you like it. I plan to however revisit this in coming days to either make it work of mark it as "not compatible". |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I came across your library while looking for a class-based store implementation and have been playing with it a bit. It seems really cool!
I noticed that when I have the experimental React compiler enabled, some of the actions no longer cause re-renders. The store is updated underneath, but it's not reflected in the UI. I tried creating a custom useStore hook using useSyncExternalStore, but had no luck getting it to work.
Do you know what it would take to make this library compatible with the React compiler? Are there any plans to do this, or is it impossible to be compatible, kind of like how MobX seems to be?
Beta Was this translation helpful? Give feedback.
All reactions