News for hackers. Stuff that matters.
Re:Show HN: The simplest React state manager now at stable r... by aenero on Tuesday April 20, 2021 @10:18AM (#26875010)
Although this is not provided by SimpleR State out of the box, the library makes it easy to implement a "selector" function that accepts an SQL query, and pass this selector to the entity hook. This SQL query syntax in React can well be a library on its own, I suppose.
Re:Show HN: The simplest React state manager now at stable r... by BenoitP on Tuesday April 20, 2021 @10:28AM (#26875135)
Would that be the transform function from here [1]?

I do agree too that this definitely should be a library on its own.

Anyway thanks for your work; I'll definitely check SimpleR in my project.

[1] https://github.com/arnelenero/simpler-state/blob/f6336817c9e...

Re:Show HN: The simplest React state manager now at stable r... by aenero on Tuesday April 20, 2021 @10:33AM (#26875197)
Yes, I called it "transform function" in the documentation to reflect the more general functionality that also includes computed values, apart from selection ("picking" properties).

Thanks for your encouraging feedback.