chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

feat(react-client): migrate from recoil to zustand

Open aleks3fs opened this issue 9 months ago • 30 comments
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 recoil with zustand. 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.

aleks3fs avatar Feb 06 '25 15:02 aleks3fs