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)
React ContextAPI: why is a local copy of store data getting updated?
I'm using ContextAPI to manage a global state of data to be shared with any page wrapped in its Provider. In one case, i need to make a copy of what's in the store and alter it locally, but not affect...
D. Messier
Votes: 0
Answers: 2
Maximum Call Stack Size exceeded and ENOENT error while using context
I get this error whenever I try to use React context,provider or useContext, any of them causes this
On App:
Maximum call stack exceeded
On terminal:
Error: ENOENT: no such file or directory, open '/...
Some Dev
Votes: 0
Answers: 1
Context Api : My Dispateched action is not returning the state
I m trying to log in a user and get his credentials in a state, I m using Context api for the first time but I keep getting an error of user is not defined when i try to log it just to see if I am upd...

Rihab sabri
Votes: 0
Answers: 0
React Context; useReducer Pattern: Can/Should properties on initialState have functions to update initialState?
I have a custom hook which I am trying to move into the context/reducer pattern:
import { sortDateStrings } from '@/Utils/SortDateStrings'
function useDiscounts ({ data }) {
const [effecti...

Antonio Pavicevac-Ortiz
Votes: 0
Answers: 0