I am trying to make a post request to an api to upload a user image and send it to the api for profile settings.But i always receive "the image field is require
I need advice, what is the best way to store a JWT token? Should we store in cookies or storages? But with the CSRF flaw and xss attacks I have a doubt. I'm sti
There is a nice example in the React-Redux documentation on how to build a functional component that will receive both props from Redux and from its parent comp
In the Redux documentation, there is an example that is not playing well with VS Code. I am talking about the example here: https://redux.js.org/usage/usage-wit
//PrivateAuthComponent.js import React, { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { useRouter } from "next/router"
When react app is inside an iframe, dev tool chrome extension for react is not working. Refererd: https://github.com/facebook/react/issues/18945 Solution sugges
I'm using react-redux. createSlice: import { createSlice } from "@reduxjs/toolkit"; const datatableSlice = createSlice({ name: "datatable", initialStat
I'm currently playing around with redux saga and I'm having troubles implementing it correctly. Let's say I have a reducer which keeps track of how many times t
I have been using the following pattern to mock react-redux hooks in tests that use Enzyme shallow rendering: import * as redux from "react-readux"; ... jest.sp
I'm having an issue using Redux Toolkit. I want to push an object to my initial state called selectedData which is an array, this gives me the error "TypeError:
I wrote profile page I want to get profile datas from api but my dispatch not working, in getProfileDetails function dispatch not working. import {createSlice}
I am new to react native and mobile development world. I am developing a mobile application with react native, it's basically an entreprise management app for H
store.ts export const store = configureStore({ reducer: { auth: authReducer }, middleware: [], }); export type AppDispatch = typeof store.d
My situation: After login I try to get username and save it to redux store after this redirect from login to home page(in this page I display list of tasks) and
i have my redux states setup like this rootState subState1 field1 field2 subState2 field1 field2 multiple sub
I am facing the problem of unauthorized 401. Done everything mentally possible, so posting it here with code and result pics. The data when accessed like this r
I have a file structure like below store index.js reducers organize index.js user index.js index.js trying to combine organize and user reducers to reducers/
Please read the details below of code enter image description here This MegaMenu Component import MenuIcon from '@mui/icons-material/Menu'; import './MegaMenu.c
I'm using RematchJS and I'd like to access the state in a model effect without sending a payload to the effect. The model looks something like this: export cons
I am unsure why I cannot use onClick on this within map function???I am getting the data from useSelector in my redux file. Clicking the TestComponent does noth