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

Unexpected window in created #59

Merged
merged 1 commit into from
Jan 25, 2021
Merged

Conversation

tikkeninc
Copy link
Contributor

Error from eslint(nuxt/no-globals-in-created)

Error from eslint(nuxt/no-globals-in-created)
@codecov
Copy link

codecov bot commented Dec 13, 2020

Codecov Report

Merging #59 (df10391) into master (1121daf) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #59   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           19        19           
  Branches         2         2           
=========================================
  Hits            19        19           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1121daf...df10391. Read the comment docs.

@atinux atinux merged commit 9b47c6e into nuxt-modules:master Jan 25, 2021
iamahuman pushed a commit to iamahuman/color-mode-module that referenced this pull request Feb 9, 2022
This reverts commit 9b47c6e.

Fix a regression that prevents cross-window dark mode synchronization
from working, by putting the storage watcher back to the created() hook.

This bug is caused by the mounted() hook never being invoked, since the
$colorMode component is not actually mounted anywhere.  Also note that
there's nothing wrong in referencing "window" in the created() hook;
this is a client plugin, and other code in the same file references
"window" already.
iamahuman pushed a commit to iamahuman/color-mode-module that referenced this pull request Feb 9, 2022
This reverts commit 9b47c6e.

Put the storage watcher back to the created() hook.  This fixes the
regression that breaks cross-window dark mode synchronization.

This bug is caused by the mounted() hook never being invoked, since the
$colorMode component is not actually mounted anywhere.  Also note that
there's nothing wrong in referencing "window" in the created() hook;
this is a client plugin, and other code in the same file references
"window" already.
iamahuman pushed a commit to iamahuman/color-mode-module that referenced this pull request Feb 9, 2022
This reverts commit 9b47c6e.

Put the storage watcher back to the created() hook.  This fixes the
regression that breaks cross-window dark mode synchronization.

This bug is caused by the mounted() hook never being invoked, since the
$colorMode component is not actually mounted anywhere.  Also note that
there's nothing wrong in referencing "window" in the created() hook;
this is a client plugin, and other code in the same file references
"window" already.
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.

2 participants