Recoil: State Persistence in react (getAtomWithKey is a function in API but in usage it says It is a object )

Created on 20 Aug 2020  路  3Comments  路  Source: facebookexperimental/Recoil

In documentation
https://recoiljs.org/docs/guides/persistence
image
but in usage
image
it gives error
image
Error Stack
image
also getAtomWithKey is not defined in Docs.

documentation

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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ibnumusyaffa picture ibnumusyaffa  路  4Comments

jamiewinder picture jamiewinder  路  3Comments

itsMapleLeaf picture itsMapleLeaf  路  4Comments

atanasster picture atanasster  路  3Comments

adamkleingit picture adamkleingit  路  4Comments