buntec / ff4s

A purely functional web UI library for Scala.js

Home Page:https://buntec.github.io/ff4s/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about Store name

johnynek opened this issue · comments

I'm enjoying using ff4s on a simple UI. I really enjoy programming with cats and pure functional style, so I appreciate your work on this.

I've shown this library to a few people and one place they always trip up is explaining with Store is named what it is. The main thing it seems to be about is the updating logic of (Action, State) => State. Or someone with more FP experience might notice that it something like Action => cats.data.State[State, Option[IO[Unit]]

I don't have a great suggestion for you, but I noticed you are still making incompatible changes, so I thought I would bring the issue up. Something more direct like Update, or maybe TransitionMatrix.

Just thought I would share my feedback.

The store terminology is entirely borrowed from redux. I don't have strong feelings about the naming, however, and I'm open to suggestions.

Thanks. I think adding the motivation for the name in the scaladoc and any documentation helps.

I've expanded on the scaladoc for the store.