Omnistac / zedux

:zap: A Molecular State Engine for React
https://Omnistac.github.io/zedux/
MIT License
376 stars 7 forks source link

chore(react): relax React peer dep for now - use `>=18` #125

Closed bowheart closed 1 month ago

bowheart commented 1 month ago

Description

Zedux doesn't actually require React v19, it just has a memory leak vulnerability in useAtomSelector in older versions when unstable function references are passed.

Since there are valid workarounds for React 18, we shouldn't require v19 in our peer dep. For now anyway.

See this discussion