The recent useAtomSelector changes to move off of useSyncExternalStore for #83 introduced a bug with inline atom selectors that return referentially unstable results on every run. Handle that case specifically and add tests - one for strict mode on, one for strict mode off.
Description
The recent
useAtomSelector
changes to move off ofuseSyncExternalStore
for #83 introduced a bug with inline atom selectors that return referentially unstable results on every run. Handle that case specifically and add tests - one for strict mode on, one for strict mode off.