Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.56k stars 226 forks source link

fix: load failure when reloading a previous project #293

Closed codemile closed 5 months ago

codemile commented 6 months ago

This PR closes #282

Steps to reproduce bug

Reason

The act of "closing the currently selected tab" caused a bug where the "currentProject" is removed from Recoil, but then in a useEffect() that closed project would get added back to "openProjects". It was a simple logic problem on trying to remember the previous project.

Note: this PR also replaces "effects_UNSTABLE" with "effects" as it's now a stable feature of Recoil

abrenneke commented 6 months ago

Note: this PR also replaces "effects_UNSTABLE" with "effects" as it's now a stable feature of Recoil

cool!