Skip to content
Discussion options

You must be logged in to vote

When using useDefaultLayout, is there a way to ignore/override/reset the default layout from local storage on first render? I'd like to avoid a useEffect if possible.

It sounds like you just don’t want to use the persisted layout? You don’t have to use that hook. That’s only if you want the last layout to be restored, which it sounds like you don’t.

Just set the Panel’s defaultSize to be whatever its collapsedSize is and you should be good to go 🙂

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@axelboc
Comment options

@bvaughn
Comment options

Answer selected by axelboc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants