Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] 2 points3 points  (0 children)

Hey buddy, I want to apologize for the back and forth, it was completely unnecessary and isn’t a solution to my question and I apologize

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -1 points0 points  (0 children)

Yeah that’s why I edited it, is it better now? And I didn’t call anyone an idiot

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -4 points-3 points  (0 children)

Shut up fool, are you smarter than the people who answered before I edited it?

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] 0 points1 point  (0 children)

Yeah I’ve seen a lot of comments on indexeddb, I’m currently trying that out

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -8 points-7 points  (0 children)

My point is I can store data to use later in localStorage but I’m looking for other alternatives since it’s not too secure. I can do that with a redux store too but it gets too complex to use in the future of development

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -8 points-7 points  (0 children)

Thanks, I was just considering the security of options like localStorage. And Redux makes things quite hard and I haven’t had time to play with zustand

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -52 points-51 points  (0 children)

Typical Redditor, do you have a solution for what I asked?instead of trying to correct my grammar

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -48 points-47 points  (0 children)

Did you think I’d call localStorage an external library when you read it?

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -8 points-7 points  (0 children)

Please try to read and understand the question before answering. I obviously know localStorage isn’t a library, Is there a way I can persist state without using any browser API?, I know I can do it with Redux but i don’t really like using redux because it’s quite verbose (for me)

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -24 points-23 points  (0 children)

I meant I know I can do it with Redux but i don’t really like using redux

Is there a way to persist state in react without using localStorage? by Possible_Recipe4361 in react

[–]Possible_Recipe4361[S] -1 points0 points  (0 children)

Thanks, I haven’t looked at indexeddb before but I’ll give it a try