---
title: "Discussion on \"Avoid shared state on the server in SvelteKit\" | Hashnode"
description: "Discussion on \"Avoid shared state on the server in SvelteKit\". Be extra cautious when using stores in SSR mode in SvelteKit"
url: "https://hashnode.com/posts/avoid-shared-state-on-the-server-in-sveltekit/64aaee13f226a1167e0fcf8c"
---

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

Discussion

# [Avoid shared state on the server in SvelteKit](https://blog.aakashgoplani.in/avoid-shared-state-on-the-server-in-sveltekit?utm_source=hashnode&utm_medium=feed)

Be extra cautious when using stores in SSR mode in SvelteKit

Jul 9, 2023 · 6 min read · blog.aakashgoplani.in  
Updated Aug 1, 2023  
Read the article

-   [#sveltekit](https://hashnode.com/tag/sveltekit)
-   [#ssr](https://hashnode.com/tag/ssr)
-   [#state-management](https://hashnode.com/tag/state-management)

## Written by

[Aakash Goplani](https://hashnode.com/@aakashgoplani)

@aakashgoplani · Mumbai, India

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

Frontend Dev. Mostly Angular and Svelte.

Senior Frontend Dev. Mostly Angular and Svelte. I will be sharing my day-to-day learning experiences here with the community.

## Responses 1

Markdown supported · ⌘↵ to post

[Connor Callahan](https://hashnode.com/@ConnorCallahan)

[Aug 3, 2023](https://hashnode.com/posts/avoid-shared-state-on-the-server-in-sveltekit/64aaee13f226a1167e0fcf8c/comment/64caefa9218e67b3098f6087)

Why is asynchronous local storage the last resort?

[Aakash Goplani](https://hashnode.com/@aakashgoplani)

[Aug 3, 2023](https://hashnode.com/posts/avoid-shared-state-on-the-server-in-sveltekit/64aaee13f226a1167e0fcf8c/comment/64caefa9218e67b3098f6087#reply-64cb1ad5218e67b3098f62e2)

Because it is not the part of SvelteKit ecosystem. In the article, I had stress to follow best practices laid by SvelteKit but if that is not possible because of requirements in-hand, then go for miscellaneous approaches!
