Overmind.js – Frictionless State Management
overmindjs.org
Overmind.js – Frictionless State Management
1–10 of 48 posts
Re: Overmind.js – Frictionless State Management
#2Re: Overmind.js – Frictionless State Management
#3Re: Overmind.js – Frictionless State Management
#4Read through the overview and the introduction and literally could not tell what Overmind was supposed to be helping with. Everything shown looks like just basic examples of using state normally in JavaScript. What does it actually do ?
Re: Overmind.js – Frictionless State Management
#5For a great example of this, see the Pulumi docs. They list many potential alternatives and why you might choose one or the other. https://www.pulumi.com/docs/intro/vs/
Re: Overmind.js – Frictionless State Management
#6It lets you make state updates using native JavaScript mutation APIs. It uses Proxies to convert those mutable updates to be immutable so that your component updates correctly. This will work:
...
const arr = useStructure([]);
...
arr.push(1, 2, 3) }>Add value
But you could use deeply nested arrays/objects/Maps/Sets. Or you could use your own class with its “mutating” methods.
If you know basic JS, you should be able to use it without worries.
Re: Overmind.js – Frictionless State Management
#7This appears to be a competitor to Redux, but with more batteries included? I was disappointed to see this wasn't answered in the FAQ--might be worth mentioning at least there, if not as an entire article on the site. For a great example of this, see the Pulumi docs. They list many potential alternatives and why you might choose one or the other. https://www.pulumi.com/docs/intro/vs/
Re: Overmind.js – Frictionless State Management
#8If you want a really frictionless state management library for React, please try out my library https://github.com/baron816/use-structure It lets you make state updates using native JavaScript mutation APIs. It uses Proxies to convert those mutable updates to be immutable so that your component updates correctly. This will work: ... const arr = useStructure([]); ... arr.push(1, 2, 3) }>Add value But you could use dee…
Re: Overmind.js – Frictionless State Management
#9I've found a combination of MobX/RxJS to be a good fit for most applications that need reactive state and don't use a framework (like Vue or Svelte) that already ships with reactivity.
Looking at this - it looks very similar except that it requires a global mutable variable (which I'm not a fan of, kind of like MobX state tree but without the serialization fun).
Someone please sell me on this :]?
Re: Overmind.js – Frictionless State Management
#10Read through the overview and the introduction and literally could not tell what Overmind was supposed to be helping with. Everything shown looks like just basic examples of using state normally in JavaScript. What does it actually do ?