diff --git a/docs/plugins/redux.md b/docs/plugins/redux.md index 617255bc6..ffab9df13 100644 --- a/docs/plugins/redux.md +++ b/docs/plugins/redux.md @@ -58,7 +58,22 @@ ReactotronConfig, you'll need to add `reactotron-redux` as plugin + export default reactotron ``` -Then, add enhancer from `Reactotron.createEnhancer()` to `createStore` as last parameter +## Using Redux Toolkit (RTK) + +If you're using RTK, add the enhancer from `Reactotron.createEnhancer()` to `enhancers` in `configureStore` + +```diff +import {configureStore} from '@reduxjs/toolkit'; ++ import Reactotron from './ReactotronConfig' +const store = configureStore({ + ... (reducers, middlewares etc), ++ enhancers: __DEV__ ? [Reactotron.createEnhancer!()] : [], +}); +``` + +## Using Classic Redux + +Add enhancer from `Reactotron.createEnhancer()` to `createStore` as last parameter ```diff import { createStore } from 'redux' @@ -71,7 +86,7 @@ import { createStore } from 'redux' Note: passing enhancer as last argument requires redux@>=3.1.0 -## If you have middleware +### If you have middleware ```diff import { createStore } from 'redux' diff --git a/docs/quick-start/getting-started.md b/docs/quick-start/getting-started.md index 2f62bea31..391fc58a9 100644 --- a/docs/quick-start/getting-started.md +++ b/docs/quick-start/getting-started.md @@ -16,6 +16,12 @@ Once installed, you need to add the Reactotron client to your project. Follow on - [**React Native**](./react-native.md#installing-reactotronapp) - [**React**](./react-js.md#installing-reactotronapp) +If you run into an [issue](https://github.com/infinitered/reactotron/issues/1140) opening the application on Mac you can install with Homebrew instead. + +``` +brew cask install reactotron +``` + ## Where can I find more information? We recommend that you watch [Darin Wilson's](https://github.com/darinwilson) talk at [Chain React](https://chainreactconf.com/): [Chain React 2018: Debugging and Beyond with Reactotron](https://www.youtube.com/watch?v=UiPo9A9k7xc)!