Skip to content

feat: add localstorage support#26

Open
hilaliu wants to merge 1 commit intoRyoSogawa:mainfrom
hilaliu:feat2
Open

feat: add localstorage support#26
hilaliu wants to merge 1 commit intoRyoSogawa:mainfrom
hilaliu:feat2

Conversation

@hilaliu
Copy link
Copy Markdown

@hilaliu hilaliu commented Dec 8, 2023

Add local storage to store location information for width persistence

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-resizable-layout ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 8, 2023 10:07am

Comment thread src/types.ts
* callback when border position changes end
*/
onResizeEnd?: (args: ResizeCallbackArgs) => void;
useLocalstorage?: boolean;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@GodlessLiu
Thank you for your fantastic suggestion. ❤️
I'm a bit concerned that the key in local storage might duplicate when multiple separators are present in the project.
How about we modify it to accept the key string as a prop?

Also, could you add this feature to this story to also serve as a test for multiple separators?

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