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

Run atom effect when first used by setting from a transaction #1479

Closed
wants to merge 2 commits into from

Conversation

drarmstr
Copy link
Contributor

@drarmstr drarmstr commented Dec 1, 2021

Summary:
Run atom effects when they are first used by being set from a transaction from useRecoilTransaction_UNSTABLE().

Resolves #1466

Differential Revision: D32777543

@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 Dec 1, 2021
@facebook-github-bot
Copy link
Contributor

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

@drarmstr drarmstr self-assigned this Dec 1, 2021
@drarmstr drarmstr added the bug Something isn't working label Dec 1, 2021
drarmstr added a commit to drarmstr/Recoil that referenced this pull request Dec 8, 2021
…okexperimental#1479)

Summary:
Pull Request resolved: facebookexperimental#1479

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves facebookexperimental#1466

Differential Revision: D32777543

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

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Dec 9, 2021
…okexperimental#1479)

Summary:
Pull Request resolved: facebookexperimental#1479

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves facebookexperimental#1466

Differential Revision: D32777543

fbshipit-source-id: 3927953f5f2287b52a0c2ba9941373ccd19e6c1c
@facebook-github-bot
Copy link
Contributor

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Dec 9, 2021
…okexperimental#1479)

Summary:
Pull Request resolved: facebookexperimental#1479

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves facebookexperimental#1466

Differential Revision: D32777543

fbshipit-source-id: 82c966f7a8af94855913f7a6a81b5fff93b9e253
@facebook-github-bot
Copy link
Contributor

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

Summary:
Add unit tests for getting/setting atoms via `useRecoilTransaction_UNSTABLE()`

NOTE: Not sure how to test setting an atom as Jest is complaining about updates not wrapped in `act(...)`...

Differential Revision: D32774468

fbshipit-source-id: 26c6a35ecaafee93b74adbc32f4581d547d5f738
…okexperimental#1479)

Summary:
Pull Request resolved: facebookexperimental#1479

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves facebookexperimental#1466

Reviewed By: habond, mondaychen

Differential Revision: D32777543

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

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

@drarmstr drarmstr deleted the export-D32777543 branch December 20, 2021 23:38
AlexGuz23 pushed a commit to AlexGuz23/Recoil that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: facebookexperimental/Recoil#1479

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves #1466

Reviewed By: habond, mondaychen

Differential Revision: D32777543

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

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves #1466

Reviewed By: habond, mondaychen

Differential Revision: D32777543

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

Run atom effects when they are first used by being set from a transaction from `useRecoilTransaction_UNSTABLE()`.

Resolves #1466

Reviewed By: habond, mondaychen

Differential Revision: D32777543

fbshipit-source-id: c2e4d7b618281325beb24d11d7f6ba0b8ce6f317
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useRecoilTransaction_UNSTABLE() set does not run atom effects
2 participants