-
Notifications
You must be signed in to change notification settings - Fork 124
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
refacto: Optimize loading #1023
Conversation
- Add env var in widget component
Hey! Those are your new endpoints: https://feat-lf8368.jumper.exchange |
const { activeTab, setActiveTab } = useActiveTabStore(); | ||
const { welcomeScreenClosed, setWelcomeScreenClosed } = | ||
useWelcomeScreen(closedWelcomeScreen); | ||
const { setWelcomeScreenClosed } = useWelcomeScreen(closedWelcomeScreen); |
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.
should not we rename this file?
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.
No clue how to rename it :( any idea?
const pathname = usePathname(); | ||
const { trackEvent } = useUserTracking(); | ||
const [starterVariantUsed, setStarterVariantUsed] = useState(false); | ||
const [_starterVariant, setStarterVariant] = useState< |
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.
do we still use this?
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.
might be another ticket to adapt this logic elsewhere for the tabs
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.
A little bit for now, removing a part of it on each of my pr :s
Also, unfortunately we do not maintain the state of a tab now: maintain-widget-states-screen-capture.webm |
Before:
![image](https://private-user-images.githubusercontent.com/2752200/337659076-d3eb3664-b302-425a-8e79-efaf79c23df8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzODEwNTAsIm5iZiI6MTcyMDM4MDc1MCwicGF0aCI6Ii8yNzUyMjAwL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