facebookexperimental / Recoil

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
https://recoiljs.org/
MIT License
19.59k stars 1.18k forks source link

only set isSSR true if !isReactNative #2275

Open tplorts opened 1 year ago

tplorts commented 1 year ago

fixes #2274

I couldn't find any tests around these environment conditions. Seems like something that would be difficult to make a good test for but let me know if there are tests I could update.

coolersham commented 1 year ago

I have tested this PR in my project, it solves the linked issue and therefore should be merged and released ASAP.

wojtekmaj commented 8 months ago

I have also tested this patch and I confirm it has resolved the issue I was having reported under #2274. I hope this gets merged soon.