Skip to content

RFC - Remove all current binding functions except for Hooks #172

@matheusml

Description

@matheusml

I'm thinking about a bold breaking change.

After this awesome PR by @d3x7r0, you can use Redux Zero with a really small API, based on Hooks:

const Counter = () => {
  const store = useStore();
  const count = useSelector(({ count }) => count);
  const increment = useAction(({ count }) => ({ count: count + 1 }));

  return (
    <>
      <p>Count: {count}</p>
      <button onClick={increment}>Increment</button>
    </>
  )
}

With that, it seems that the other approaches (connect and Connect) simply don't make sense anymore.
I'm highly considering rebranding Redux Zero to be all about this three hooks. No more, no less.

What do you think?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions