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

Switch from global to globalThis #63

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lukaselmer
Copy link

globalThis has become a standard which is supported by all major platforms (as of 2023): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis

Using the non-standard global leads to issues like #55 and donavon/use-persisted-state#62

globalThis has become a standard which is supported by all major platforms (as of 2023): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
@lukaselmer lukaselmer changed the title Switch from global to globalThis Switch from global to globalThis Jul 24, 2023
@god-of-javascript
Copy link

This is required!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants