Skip to content

Persist open state across full reloads#26

Merged
AlemTuzlak merged 1 commit intocode-forge-io:mainfrom
AhmedNawaf:persist-open
Jul 26, 2023
Merged

Persist open state across full reloads#26
AlemTuzlak merged 1 commit intocode-forge-io:mainfrom
AhmedNawaf:persist-open

Conversation

@AhmedNawaf
Copy link
Copy Markdown
Contributor

@AhmedNawaf AhmedNawaf commented Jul 26, 2023

Description

Same as #16
Not much of a GitHub experience I have :)
Anyway, I was thinking about this feature when I was modifying the URLSearchParams.
Here's a quick demo:

demo.mp4

Note: I used CTRL+R shortcut for full reloads.

Fixes # (issue)
The open state is stored in the session storage along with the other states.
If defaultOpen prop is set to true, It will be respected.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@AlemTuzlak AlemTuzlak merged commit c5e9ba6 into code-forge-io:main Jul 26, 2023
@AhmedNawaf AhmedNawaf deleted the persist-open branch July 27, 2023 10:49
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