Recoil: [Bug] atomValues empty using useTransactionObservation_UNSTABLE

Created on 5 Jun 2020  路  6Comments  路  Source: facebookexperimental/Recoil

The subscription to the observer fires correctly when changing atoms, and returns the correct key (modifiedAtoms) but the atomValues Map is empty.

Im referring to this method:
useTransactionObservation_UNSTABLE(({atomValues, atomInfo, modifiedAtoms})

Edit: atomInfo is not empty

Most helpful comment

Have you defined your atoms with a persistence_UNSTABLE value?
export const myAtom = atom({ key: 'myAtom', default: {}, persistence_UNSTABLE: { type: true }, });

All 6 comments

Have you defined your atoms with a persistence_UNSTABLE value?
export const myAtom = atom({ key: 'myAtom', default: {}, persistence_UNSTABLE: { type: true }, });

How could I miss that! Thank you, John!

Please note that the observability API is updating to avoid the need for this extra metadata.

Is the new persistence API coming any time soon?

Yes, we're still working on it; just had some delays.

Can you tell me if it's less or more than a month? I know you can't tell me the real release date for sure, I just need rough estimate what the chances are that it will be more than a month.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sawtaytoes picture Sawtaytoes  路  4Comments

adrianbw picture adrianbw  路  3Comments

adamkleingit picture adamkleingit  路  4Comments

atanasster picture atanasster  路  3Comments

thegauravthakur picture thegauravthakur  路  3Comments