Live data from Hacker News

Overmind.js – Frictionless State Management

overmindjs.org

1–10 of 48 posts

Re: Overmind.js – Frictionless State Management

#4
post #3

Read 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 ?

These core application libraries all need a section: “how it differs from Vanilla|Redux|etc.”

Re: Overmind.js – Frictionless State Management

#5
This 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

#6
If 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 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

#7

This 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/

Side note: thank you Pulumi looks great, been wracking my head around reducing the _insane_ verbosity of using HCL for Terraform.

Re: Overmind.js – Frictionless State Management

#8
post #6

If 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…

So… like immer / use-immer?

Re: Overmind.js – Frictionless State Management

#9
Can someone explain the benefit of using this over the (already existing and popular) reactive libraries?

I'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

#10
post #3

Read 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 ?

Lib like this or Redux seems like to try to better help people who don't have CS back ground to develop. Anyone who had CS training should be able to state management in plain JS or other general purpose programming language.
Post reply on HN