Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

ACTION is undefined | Integration Reactotron Redux and Redux Toolkit (createAsyncThunk) #46

@abdullahizzuddiin

Description

@abdullahizzuddiin

Hello,

I am developing an app using Redux Toolkit. Then, I integrate it with Reactotron Redux.

But, it seems Reactotron didn't recognized action that defined on createAsyncThunk. But, it recognized action that defined as standard reducer.

image

This is my ReactotronConfig.js

import Reactotron from 'reactotron-react-native';
import {reactotronRedux} from 'reactotron-redux';

import AsyncStorage from '@react-native-async-storage/async-storage';

let reactotron;
if(__DEV__) {
    reactotron = Reactotron
        .setAsyncStorageHandler(AsyncStorage)
        .configure({
            name: 'AppName',
        })
        .useReactNative() // add all built-in react native plugins
        .use(reactotronRedux())
        .connect(); // let's connect!
}

export default reactotron;

and this is my Store Configuration.

import {ReactotronConfig} from '@utils'

const store = configureStore({
    reducer: rootReducer,
    enhancers: defaultEnhancers => [ReactotronConfig.createEnhancer(), ...defaultEnhancers]
});

Any clue about this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions