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

Enable atoms to be initialized to a Promise #1681

Closed

Conversation

drarmstr
Copy link
Contributor

Summary:
Minor completeness for the API to allow atoms to be initialized to Promise types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises. The point of this diff is to provide completeness for future work to support async atoms

Differential Revision: D34975767

@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 Mar 18, 2022
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Mar 25, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: D34975767

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

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Mar 25, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: D34975767

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

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Mar 25, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: D34975767

fbshipit-source-id: 16a70f6b1087cf9258039dec862f4f1773c6b640
@drarmstr drarmstr self-assigned this Apr 5, 2022
@drarmstr drarmstr added the enhancement New feature or request label Apr 5, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: D34975767

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

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

drarmstr added a commit to drarmstr/Recoil that referenced this pull request Apr 8, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: https://www.internalfb.com/diff/D34975767?entry_point=27

fbshipit-source-id: 7846112e86a9a4af82a4e76da06944ec02c9f54e
drarmstr added a commit to drarmstr/Recoil that referenced this pull request Apr 8, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: https://www.internalfb.com/diff/D34975767?entry_point=27

fbshipit-source-id: 36fc7d893fa4146d9f2ebcf95aef5d9ad715d9d7
drarmstr added a commit to drarmstr/Recoil that referenced this pull request Apr 15, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: https://www.internalfb.com/diff/D34975767?entry_point=27

fbshipit-source-id: 9dcc6741d01023f3495fa79f393d712a58b6f799
drarmstr added a commit to drarmstr/Recoil that referenced this pull request Apr 15, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: https://www.internalfb.com/diff/D34975767?entry_point=27

fbshipit-source-id: ac2ea59cea4c2b719c22ea77d392ab7d5d73eac4
drarmstr added a commit to drarmstr/Recoil that referenced this pull request Apr 15, 2022
…xperimental#1681)

Summary:
Pull Request resolved: facebookexperimental#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Differential Revision: https://www.internalfb.com/diff/D34975767?entry_point=27

fbshipit-source-id: a95f45ec45e1a36758fb18f50f235c2b0e08b0c8
@drarmstr drarmstr deleted the export-D34975767 branch June 8, 2022 20:45
AlexGuz23 pushed a commit to AlexGuz23/Recoil that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: facebookexperimental/Recoil#1681

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Reviewed By: noritheduck

Differential Revision: D34975767

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

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Reviewed By: noritheduck

Differential Revision: D34975767

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

Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults.

To properly allow Promises and such as atom values we also need the ability to set atoms to Promises.  The point of this diff is to provide completeness and for future work to support async atoms

Reviewed By: noritheduck

Differential Revision: D34975767

fbshipit-source-id: 45bb3274646ef8ebb31d0390ee34300a57bdcd2e
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