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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: react strict mode
1 participant