chainlit
chainlit copied to clipboard
feat(react-client): migrate from recoil to zustand
trafficstars
There is an issue with running @chainlit/react-client, with latest React 19 and issue seems to be connected to usage of recoil.
In this PR I've
- replaced
recoilwithzustand. I tried to combine logically connected parts of the state into stores. - bumped React to v19
It'd be nice to have this in the latest version, but I haven't been able to test everything.