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

chore: enable React.StrictMode #370

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented May 6, 2023

It seems we got some non-pure code a lot even though it works in practice.
Let's setup React.StrictMode to see how much it would break.
(Also I'm more interested in dog-fooding utils-react package to see if they have a problem)

todo

  • react-query mutate in effect 4842dde
  • double flash message
    • very ridiculous workaround...? 85e0137
    • useEffectNoStrict seems fine
  • youtube iframe stuck loading
    • mutation via useIntersectionObserver 629ae4a

@hi-ogawa hi-ogawa changed the title Chore react strict mode chore: enable React.StrictMode May 6, 2023
@hi-ogawa
Copy link
Owner Author

hi-ogawa commented May 6, 2023

This flaky-ness might be just inherent one and not related to strict mode double effect https://github.com/hi-ogawa/ytsub-v3/actions/runs/4899808342/jobs/8750039188#step:9:58
I cannot reproduce it locally.

@hi-ogawa hi-ogawa changed the base branch from master to main December 31, 2023 05:06
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.

chore: react strict mode
1 participant