Skip to content

What is shared state? #4343

Answered by benmccann
hyunbinseo asked this question in Q&A
Mar 16, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

state: the particular condition something is in at a specific time
shared: possessed in common with another or others

"shared state" in this context essentially means a variable shared by two different requests. Using svelte/store wouldn't be an example of shared state if you created a new instance of a store for each request, but often people will create a store as a global variable which causes it to be shared across requests

Replies: 3 comments 2 replies

Comment options

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

@benmccann
Comment options

Answer selected by hyunbinseo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants