在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):reduxkotlin/redux-kotlin开源软件地址(OpenSource Url):https://github.com/reduxkotlin/redux-kotlin开源编程语言(OpenSource Language):Kotlin 69.5%开源软件介绍(OpenSource Introduction):Redux-KotlinA redux standard for Kotlin that supports multiplatform projects. Full documentation at http://reduxkotlin.org. Misson StatementProvide a standard redux implementation for Kotlin. In doing so will foster a ecosystem of middleware, store enhancers, & dev tools. These core values will guide descisions for the project:
Redux in Kotlin, and in mobile in particular, may differ a bit from javascript. Many have found the basic pattern useful on Android & iOS leading to tens of opensource redux libraries in Kotlin, Java, and Swift, yet an ecosystem has yet to emerge. A port of javascript redux is a good starting point for creating a standard and will aid in cross-pollination of middleware, store enhancers, & dev tools from the javascript world. Redux has proven helpful for state management in mobile. A multiplatform Kotlin implementation & ecosystem will increase developer productivity and code reuse across platforms. Droidcon NYC Slides Video TBA Redux on Mobile Survey ****** PLEASE FILL OUT THEHow to add to project: Artifacts are hosted on maven central. They are published with gradle metadata, so you may need to enable with
For JVM only:
*Non threadsafe store is available. Typical usage will be with the threadsafe store. More info read here Usage is very similar to JS Redux and those docs will be useful https://redux.js.org/. These docs are not an intro to Redux, and just documentation on Kotlin specific bits. For more info on Redux in general, check out https://redux.js.org/. Create an AppState class
Create Reducers:
Create Middleware: There are a few ways to create middleware: Using a curried function stored in a val/var:
Using a function:
Using the convenience helper function
Create a store
You then will have access to dispatch and subscribe functions from the Create a synchronized store
Access to Create a synchronized store using an enhancer
Access to CommunicationWant to give feedback, contribute, or ask questions? #redux slack channel in kotlinlang Trello boards - https://trello.com/reduxkotlinorg Or create an issue on github. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论