ReduxKotlin

ReduxKotlin

  • Getting Started
  • API
  • FAQ
  • Github
  • Need help?

›API Reference

Introduction

  • Getting Started with Redux
  • Motivation
  • Core Concepts
  • Three Principles
  • Threading
  • Learning Resources
  • Ecosystem
  • Examples

Basic Tutorial

  • Basic Tutorial: Intro
  • Actions
  • Reducers
  • Store
  • Data flow

Advanced Tutorial

  • Advanced Tutorial: Intro
  • Async Actions
  • Middleware

FAQ

  • FAQ Index
  • General
  • Reducers
  • Store Setup
  • Multiplatform

Other

  • Glossary
  • Troubleshooting
  • Feedback

API Reference

  • API Reference
  • createStore
  • createThreadSafeStore
  • createSameThreadEnforcedStore
  • Store
  • applyMiddleware
  • compose

createThreadSafeStore(reducer, preloadedState, enhancer)

Creates a Redux store that is may be accessed from any thread.

This is the recommended way to create a store.

There is some performance overhead in using createThreadSafeStore() due to synchronization, however it is small and mostly likely not impact UI.

Some quick benchmarks on an Android app have shown that:

  1. calling getState was always < 1ms with or without synchronization
  2. dispatch calls to 1-3ms longer with synchronization
  3. During a cold launch of app differences were more dramatic. Some calls to dispatch took +100ms more than an store that was not synchronized.

see createStore() for usage.

← createStorecreateSameThreadEnforcedStore →
ReduxKotlin
Docs
Getting StartedCore ConceptsBasicsAdvanced
Community
#redux slackTrello board
More
GitHubStar
Thank you to Dan Abramov and the Redux.js.org documentation authors from which this was forked.
Some icons copyright Font Awesome and Noun Project (Hassan ali, ProSymbols)