Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 586 Bytes

File metadata and controls

15 lines (10 loc) · 586 Bytes

Connect

h(Example, { name: "api/connect" })

The connect function you created is used to connect components to your application. Any state you access in the component is automatically tracked by Overmind and the component will rerender when there is a change.

addMutationListener

You also have access to manually react to changes in the state. This gives you a lot of flexibility as you can react to type of change and at what path. You can even pattern match the path to react to nested changes etc.

h(Example, { name: "api/connect_listener" })