chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Recoil is obsolete, project should use jotai or zustand

Open danpe opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Recoil is obsolete, project should use jotai or zustand. Recoil is not supported in React 19.

Describe the solution you'd like Repalce recoil state manager with jotai or zustand.

danpe avatar Oct 18 '24 17:10 danpe

+1 This will be required for React 19 support of chainlit and therefore all projects that use chainlit. Highly doubt Recoil will see any React 19 support, given that it didnt get any updates in 1.5 years..

jbeckerdm avatar Dec 27 '24 10:12 jbeckerdm

zustand would be a better alternative in this case , it is simple and well maintained for future updates

abdrr97 avatar Mar 25 '25 13:03 abdrr97

I recomment Zustand. it's simple and clean!

kgeekInCominty avatar Mar 25 '25 13:03 kgeekInCominty

I've ported the @chainlit/react-client to zustand and will post a PR soon 👀 For the rest of chainlit, maybe we can work this through collaboratively, it's really not hard to switch.

jbeckerdm avatar May 09 '25 08:05 jbeckerdm

https://github.com/Chainlit/chainlit/pull/1870 Working on it here now.

jbeckerdm avatar May 12 '25 12:05 jbeckerdm