---
title: "Discussion on \"Svelte 5 `$state` won't save to IndexedDB: fixing DataCloneError\" | Hashnode"
description: "Discussion on \"Svelte 5 `$state` won't save to IndexedDB: fixing DataCloneError\". Why your reactive state fails structured clone, and the fix I shipped."
url: "https://hashnode.com/posts/svelte-5-indexeddb-datacloneerror/6a58dfd1a928f348a3df08e5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Svelte 5 \`$state\` won't save to IndexedDB: fixing DataCloneError](https://blog.budhathokisagar.com.np/svelte-5-indexeddb-datacloneerror?utm_source=hashnode&utm_medium=feed)

Why your reactive state fails structured clone, and the fix I shipped.

Jul 16 · 4 min read · blog.budhathokisagar.com.np  
Read the article

-   [#svelte](https://hashnode.com/tag/svelte)
-   [#indexeddb](https://hashnode.com/tag/indexeddb)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Sagar Budhathoki](https://hashnode.com/@sbmagar13)

@sbmagar13 · Kathmandu, Nepal

  
[View profile](https://hashnode.com/@sbmagar13)

version:1.2.3

I am a Python/DevOps Engineer. Skilled with hands-on experience in Python frameworks, system programming, cloud computing, automating, and optimizing mission-critical deployments in AWS, leveraging configuration management, CI/CD, and DevOps processes. From Nepal.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
