In documentation
https://recoiljs.org/docs/guides/persistence

but in usage

it gives error

Error Stack

also getAtomWithKey is not defined in Docs.
getAtomWithKey() isn't actually part of any API. That is just pseudo-code in the example to indicate you should look-up and provide the actual atom object based on looking it up with the key. This example is only temporary until the persistence library is published which actually uses the effects API.
Updated docs in #553
Thank you for clarifying this @drarmstr
Most helpful comment
getAtomWithKey()isn't actually part of any API. That is just pseudo-code in the example to indicate you should look-up and provide the actual atom object based on looking it up with the key. This example is only temporary until the persistence library is published which actually uses the effects API.