-
Notifications
You must be signed in to change notification settings - Fork 45
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
persist onboarding tips visibility #43
Conversation
@mrudulpatil18 is attempting to deploy a commit to the tscircuit Team on Vercel. A member of the Team first needs to authorize it. |
src/components/LandingHero.tsx
Outdated
|
||
export const LandingHero = () => { | ||
const [visible, setVisible] = useState(true) | ||
const { should_onboarding_tips_be_closed, setOnboardingTipsClosed } = useGlobalStore() |
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.
use a selector with the global store- it will cause less react-rerenders (important react optimization)
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.
changes made
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.
very close! minor change
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
format failure, biome vscode extension w/ format on save or run |
fixed |
fixes #38
should_onboarding_tips_be_closed
&setOnboardingTipsClosed
to global storeLandingHero
to use global store for onboarding tips visibility