Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Add parentStoreID_UNSTABLE to atom effects#1744

Closed
drarmstr wants to merge 1 commit intofacebookexperimental:mainfrom
drarmstr:export-D35110419
Closed

Add parentStoreID_UNSTABLE to atom effects#1744
drarmstr wants to merge 1 commit intofacebookexperimental:mainfrom
drarmstr:export-D35110419

Conversation

@drarmstr
Copy link
Copy Markdown
Contributor

Summary: Add parentStoreID_UNSTABLE to atom effects. This can be helpful if you are matching up Store IDs when an atom is initialized from a snapshot that was cloned from <RecoilRoot> or mapped from another snapshot. That is common when using useRecoilCallback(). The snapshot provided in that callback will be a clone and have a unique StoreID, but the parentStoreID_UNSTABLE would match with the StoreID from the creating components <RecoilRoot> store as measured by useRecoilStoreID().

Differential Revision: D35110419

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Apr 19, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D35110419

@drarmstr drarmstr self-assigned this Apr 25, 2022
@drarmstr drarmstr added the enhancement New feature or request label Apr 25, 2022
Summary:
Pull Request resolved: facebookexperimental#1744

Add `parentStoreID_UNSTABLE` to atom effects.  This can be helpful if you are matching up Store IDs when an atom is initialized from a snapshot that was cloned from `<RecoilRoot>` or mapped from another snapshot.  That is common when using `useRecoilCallback()`.  The snapshot provided in that callback will be a clone and have a unique `StoreID`, but the `parentStoreID_UNSTABLE` would match with the `StoreID` from the creating components `<RecoilRoot>` store as measured by `useRecoilStoreID()`.

Reviewed By: noritheduck

Differential Revision: D35110419

fbshipit-source-id: bf776951ccc753e1e822c22648c520fbc821f956
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D35110419

@drarmstr drarmstr force-pushed the export-D35110419 branch from 1b000cc to a6bb6fa Compare May 4, 2022 17:18
@drarmstr drarmstr deleted the export-D35110419 branch June 8, 2022 20:43
AlexGuz23 pushed a commit to AlexGuz23/Recoil that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: facebookexperimental/Recoil#1744

Add `parentStoreID_UNSTABLE` to atom effects.  This can be helpful if you are matching up Store IDs when an atom is initialized from a snapshot that was cloned from `<RecoilRoot>` or mapped from another snapshot.  That is common when using `useRecoilCallback()`.  The snapshot provided in that callback will be a clone and have a unique `StoreID`, but the `parentStoreID_UNSTABLE` would match with the `StoreID` from the creating components `<RecoilRoot>` store as measured by `useRecoilStoreID()`.

Reviewed By: noritheduck

Differential Revision: D35110419

fbshipit-source-id: 8ae20ac93ea61129994e3b95ed878877bb7b6a81
snipershooter0701 pushed a commit to snipershooter0701/Recoil that referenced this pull request Mar 5, 2023
Summary:
Pull Request resolved: facebookexperimental/Recoil#1744

Add `parentStoreID_UNSTABLE` to atom effects.  This can be helpful if you are matching up Store IDs when an atom is initialized from a snapshot that was cloned from `<RecoilRoot>` or mapped from another snapshot.  That is common when using `useRecoilCallback()`.  The snapshot provided in that callback will be a clone and have a unique `StoreID`, but the `parentStoreID_UNSTABLE` would match with the `StoreID` from the creating components `<RecoilRoot>` store as measured by `useRecoilStoreID()`.

Reviewed By: noritheduck

Differential Revision: D35110419

fbshipit-source-id: 8ae20ac93ea61129994e3b95ed878877bb7b6a81
eagle2722 added a commit to eagle2722/Recoil that referenced this pull request Sep 21, 2024
Summary:
Pull Request resolved: facebookexperimental/Recoil#1744

Add `parentStoreID_UNSTABLE` to atom effects.  This can be helpful if you are matching up Store IDs when an atom is initialized from a snapshot that was cloned from `<RecoilRoot>` or mapped from another snapshot.  That is common when using `useRecoilCallback()`.  The snapshot provided in that callback will be a clone and have a unique `StoreID`, but the `parentStoreID_UNSTABLE` would match with the `StoreID` from the creating components `<RecoilRoot>` store as measured by `useRecoilStoreID()`.

Reviewed By: noritheduck

Differential Revision: D35110419

fbshipit-source-id: 8ae20ac93ea61129994e3b95ed878877bb7b6a81
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. enhancement New feature or request fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants