Hi there,
I've found infinity loop problem if the value to be set has a circular reference.
Is it bug or limitation of recoil?
Minimum reproduction:
https://codesandbox.io/s/intelligent-matsumoto-vsw7m?file=/src/App.js
RangeError: Maximum call stack size exceeded
The value can be set without error.
Yes, looks like that's a current bug of our internal hashing.
As a temporary workaround you can add dangerouslyAllowMutability: true to the atom options. This prevents us from deep-freezing the value which is where this is happening.
Most helpful comment
Yes, looks like that's a current bug of our internal hashing.