python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to pass url to reducer in a correct way?
I have created my first slice:
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
import axios from 'axios';
const initialState = {
current: null,
value: [],
status: 'idle'...
Pepe
Votes: 0
Answers: 1
how to configure redux sagas with redux toolkit and typescript?
This is my store :
import saga from 'redux-saga';
import {all, fork} from 'redux-saga/effects';
import { configureStore, getDefaultMiddleware} from '@reduxjs/toolkit';
import { watchCommonSaga} f...
Juan Ignacio
Votes: 0
Answers: 1
Redux store.getState() returning initial state values
I have a Redux store configured and I'm trying to access the state from outside of a React component. I'm using store.getState() but it's returning the initial state values for everything in the store...
Blake
Votes: 0
Answers: 2
How to globally use the created redux slice using redux toolkit?
I have question and I really don't know what proper term for this.
My question is how to call created slice from another slice?
Goal: To re initial state the notification data from the other page.
Her...
DevGe
Votes: 0
Answers: 0