Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Releases: kettanaito/redux-dynamics

Release 1.0

31 Jan 20:35

Choose a tag to compare

Release 1.0Pre-release
Pre-release

Unstable release of the refactoredredux-dynamics.

Change log

  • Changed strong-types solution to TypeScript
  • Introduced newReducer class to create reducers
  • Introduced more declarative way of subscribing to actions:
constcommentReducer=newReducer({likes:0});commentReducer.subscribe('ADD_LIKE',(state,action,context)=>{constnextState=state.get('likes')+action.get('amount');returnnextState;});exportdefaultcommentReducer;
  • ConvertReducer instances to plain pure functions with.toFunction():
import{createReducer}from'redux';importcommentReducerfrom'./commentReducer';exportdefaultcreateReducer({comment:commentReducer.toFunction()});
Loading

[8]ページ先頭

©2009-2025 Movatter.jp