-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Description
Description
Here, the snapshot example is not broken. However, if I fill out the form and refresh the page, the values are lost.
Minimal Reproduction
<script lang="ts">
import type { Snapshot } from './$types';
let comment = $state('');
export const snapshot: Snapshot<string> = {
capture: () => comment,
restore: (value) => comment = value
};
</script>
<form method="POST">
<label for="comment">Comment</label>
<textarea id="comment" bind:value={comment} />
<button>Post comment</button>
</form>Steps to Reproduce
You can check this example
https://flowbite-svelte.com/docs/examples/snapshot
Environment
Demo Site
https://flowbite-svelte.com/docs/examples/snapshotRelevant Logs / Console Output
Screenshots / GIF (optional)
No response
Additional Context (optional)
No response
Checklist
- I have searched existing issues and discussions
- I have provided a minimal and runnable reproduction
- I am using the latest version of Flowbite-Svelte
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels