README.md in rydux-0.9.1 vs README.md in rydux-0.9.2

- old
+ new

@@ -63,11 +63,11 @@ end # Every instance that subscribes to the store will # get this state_changed method called whenever the state # in the store changes. Do whatever you want with your state here. - def state_changed(state, last_dispatch_type) + def state_changed(state) # ... end end ``` 5. To update the store with new data, you can `dispatch` actions, like so: @@ -100,11 +100,11 @@ def initialize Store.subscribe(self) @users_name = Store.state.user.name end - def state_changed(state, last_dispatch_type) + def state_changed(state) @users_name = state.user.name end def greet_user puts "Hello, #{@users_name}" @@ -117,9 +117,12 @@ # Change a value in the store Store.dispatch(type: 'CHANGE_USER_NAME', payload: { name: 'Mike' }) friend.greet_user #=> Hello, Mike ``` + +View the [Documentation](https://github.com/alexdovzhanyn/rydux/wiki) for more information +on methods and parameters ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.