What is your go-to state management library? No frameworks!

hasnaindev

Muhammad Hasnain

Posted on July 13, 2021

What is your go-to state management library? No frameworks!

Hello.

What is your go-to state management library? I know we can use redux without React and I have. Redux is such an amazing tool. But, are there any alternatives? PS, if possible, also share how the library you mentioned saved your bum.

I remember I was working on a project where I was not going to use any JavaScript frameworks. Somewhat complex google maps system for a WordPress multisite. For each site we used to input the associated shop/branch coordinates and then polygon information for coverage area.

Since, there were over 25 sites, I cached all the settings in a new table that I had created in order to fetch all the data in a single query instead of changing the "blog", fetching that information for that specific site and changing it again.

The data was complex but I handled it beautifully. After I was done, I thought only if I had used Redux in order to make state management super super easy! My project did use custom observers, immutable data and selectors. Replacing that with Redux would've meant that other developers would've started with it like real easy!

Anyways, thanks for reading this post. Give me some awesome recommendation and also, how the library you mentioned saved you bum! Thanks!

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
hasnaindev
Muhammad Hasnain

Posted on July 13, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About