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
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.
Most helpful comment
Have you defined your atoms with a persistence_UNSTABLE value?
export const myAtom = atom({ key: 'myAtom', default: {}, persistence_UNSTABLE: { type: true }, });