Skip to content
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

feat: Generate sharable link for code-explorer #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amareshsm
Copy link
Member

@amareshsm amareshsm commented Sep 23, 2024

Prerequisites checklist

What is the purpose of this pull request?

Generate a shareable link for Code Explorer, similar to how ESLint Playground generates shareable links

What changes did you make? (Give an overview)

Utilized Zustand's built-in functions to handle the application state and automatically sync it with the URL hash. In this implementation, the custom hashStorage ensures that all state updates are directly reflected in the URL.

Is there anything you'd like reviewers to focus on?

Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit 593ae2d
🔍 Latest deploy log https://app.netlify.com/sites/eslint-code-explorer/deploys/66fc3d06aec24c0008a971ec
😎 Deploy Preview https://deploy-preview-49--eslint-code-explorer.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 site configuration.

@amareshsm amareshsm marked this pull request as ready for review September 23, 2024 21:32
set => ({
tool: "ast",
setTool: tool => set({ tool }),
persist(
Copy link
Member

Choose a reason for hiding this comment

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

Did you intend to have a second persist here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants