-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
fix: move user prop updater into statsigProvider #7442
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -122,53 +120,6 @@ export default function App() { | |||
} | |||
}, [searchParams, setShouldDisableNFTRoutes]) | |||
|
|||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all this code is just relocated and unchanged
2 flaky tests on run #14959 ↗︎
Details:
cypress/e2e/swap/uniswapx.test.ts • 2 flaky tests • e2e
Review all test suite changes for PR #7442 ↗︎ |
Description
moves all the
useEffect
hooks which set user properties into their own component. this is important because it puts the logic within StatsigProvider and DarkModeQueryParamProvider, which can affect the values we set.Slack thread: https://uniswapteam.slack.com/archives/C052XQ3EUTT/p1696973999717179
Test plan
manually verified that
isUniswapXDefaultEnabled
correctly updates totrue
at this callsite now - before it was never updating to the correct value