rickyvetter / reductive

Redux in Reason
MIT License
409 stars 40 forks source link

Somewhere wanted unit problem #54

Closed TomiS closed 4 years ago

TomiS commented 4 years ago

Hey

I'm trying to use reductive in an environment with BS 7.0.0

I keep getting an error like this:

  32 │ 
  33 │ let store =
  34 │   Reductive.Store.create(~reducer, ~preloadedState=initialState, ());

  This has type:
    appState
  But somewhere wanted:
    unit

Based on examples, my setup looks ok. Anyone else experienced the same?

TomiS commented 4 years ago

Ah, 5 seconds after posting I managed to get more specific error. I think the problem is related to my reducer. Closing. Sorry.

TomiS commented 4 years ago

If anyone ends up here, the reason was that the reducer was not returning a new state because the developer (me) is a noob.