Skip to content

Conversation

@vbrajon
Copy link

@vbrajon vbrajon commented Dec 13, 2024

Store userCollapsed in sessionStorage to avoid closing it every page refresh.

NOTE: you can improve the PR making it configurable, store it in another sessionStorage[KEY].

@netlify
Copy link

netlify bot commented Dec 13, 2024

Deploy Preview for vite-plugin-checker ready!

Name Link
🔨 Latest commit a00d6d6
🔍 Latest deploy log https://app.netlify.com/projects/vite-plugin-checker/deploys/682b0876b205d70008d9d454
😎 Deploy Preview https://deploy-preview-419--vite-plugin-checker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

}
const userCollapsed = ref<boolean | undefined>(undefined)
const userCollapsed = ref<boolean>(sessionStorage.userCollapsed === "true")
Copy link
Contributor

@armano2 armano2 Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea, can you change name to something more unique to avoid potential conflicts?

maybe something like vite_checker_overlay_collapsed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, Done

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vite-plugin-checker@419

commit: a00d6d6

vbrajon added 2 commits May 19, 2025 12:23
Store userCollapsed in sessionStorage to avoid closing it every page refresh
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.

2 participants