Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big warning message to tell people to add a RecoilRoot to their component tree #712

Closed

Conversation

drarmstr
Copy link
Contributor

@drarmstr drarmstr commented Nov 5, 2020

Summary:
When using a Recoil hook outside of <RecoilRoot> using mutable source, the following error gets thrown:

Error: Cannot read property '_getVersion' of null

This is exceptionally cryptic and doesn't give any hint as to how to fix the problem. Let's show a more helpful error message instead.

Reviewed By: drarmstr

Differential Revision: D24643931

…nent tree

Summary:
When using a Recoil hook outside of `<RecoilRoot>` using mutable source, the following error gets thrown:

```
Error: Cannot read property '_getVersion' of null
```

This is exceptionally cryptic and doesn't give any hint as to how to fix the problem. Let's show a more helpful error message instead.

Reviewed By: drarmstr

Differential Revision: D24643931

fbshipit-source-id: 4839d056986da0701aa10235ac12dc00b8727647
@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 Nov 5, 2020
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 19bfa75.

AlexGuz23 pushed a commit to AlexGuz23/Recoil that referenced this pull request Nov 3, 2022
…nent tree (#712)

Summary:
Pull Request resolved: facebookexperimental/Recoil#712

When using a Recoil hook outside of `<RecoilRoot>` using mutable source, the following error gets thrown:

```
Error: Cannot read property '_getVersion' of null
```

This is exceptionally cryptic and doesn't give any hint as to how to fix the problem. Let's show a more helpful error message instead.

Reviewed By: drarmstr, davidmccabe

Differential Revision: D24643931

fbshipit-source-id: c167196db8ebf2cf8ac3bc70557a33ed55c489fe
snipershooter0701 pushed a commit to snipershooter0701/Recoil that referenced this pull request Mar 5, 2023
…nent tree (#712)

Summary:
Pull Request resolved: facebookexperimental/Recoil#712

When using a Recoil hook outside of `<RecoilRoot>` using mutable source, the following error gets thrown:

```
Error: Cannot read property '_getVersion' of null
```

This is exceptionally cryptic and doesn't give any hint as to how to fix the problem. Let's show a more helpful error message instead.

Reviewed By: drarmstr, davidmccabe

Differential Revision: D24643931

fbshipit-source-id: c167196db8ebf2cf8ac3bc70557a33ed55c489fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants