1,156 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
50
views
Inconsistent HttpOnly cookie persistence across app restarts in React + Capacitor mobile app
I'm developing a hybrid mobile app using React + Capacitor, with an Express backend that sets a HttpOnly refresh token cookie.
The backend sets the cookie like this:
res.cookie("refresh_token&...
0
votes
0
answers
105
views
Capacitor (React + Android emulator) not sending HttpOnly cookie back to server, works fine in browser
I have a React web app that I’m running inside a Capacitor container. The backend issues an HttpOnly cookie (refresh_token) for authentication.
When I test in a normal browser, everything works:
...
0
votes
1
answer
41
views
Is there a reliable way to handle a Route Path losing focus? Like onBlur
In an electron-vite, React, typescript app, I'm using a Router with paths to a series of pages, each of which returns a <RootLayout.
ReactDOM.createRoot(document.getElementById('root') as ...
-1
votes
2
answers
163
views
Component rendered with ReactDOM.createRoot inside useEffect fails to appear on initial load
I’m migrating an app from React 18.3.1 / React-DOM 18.3.1 to React 19.1.0 / React-DOM 19.1.0.
With React 18 the code below rendered an EditView component into every DOM element that SurveyJS inserts ...
1
vote
0
answers
138
views
Upgrading to ZenDeskGarden 9.5.3 broken tests and build - Error /react-merge-refs/dist/index.mjs not supported during vitests
I'm fairly new to using React in recent years. I've created a react app for ZenDesk - https://developer.zendesk.com/documentation/apps/build-an-app/using-react-in-a-support-app/
I now want to use the ...
0
votes
2
answers
72
views
I accidentally did an npm install on reacct-dom instead of react-dom. What should I do?
I tried running the command
npm install react react-dom
But I ended up typing
npm install react reacct-dom
When I was getting errors, I went back and sure enough found my mistake. I promptly deleted ...
0
votes
0
answers
117
views
TypeError: Cannot read properties of null (reading 'useState')" on useState usage react
So, my react-flow code is throwing this error.
it's probably a dumb mistake on my part. But it could be happening due to a conflict between the react versions.
Although I tried using different react ...
0
votes
0
answers
336
views
Dependency issue with native-base 3.4.28 and react-dom 19.0.0
Could someone please help me to solve this error when trying to install npm on my react-native project taht I upgraded from version 0.71.1 to 0.76.5 ?
node version installed: 18.20.4
npm version ...
0
votes
1
answer
102
views
3d Terrain Generation using ThreeJs/React
Recently I've started coding a flight simulator using ReactJs and HTML. I've been using GitHub Codespaces to develop the sim. To view the sim, i started a local host and everything worked fine. But ...
0
votes
1
answer
65
views
Next.js: Import Error with react-email - renderToReadableStream Not Exported
I am working on a project in Next.jsand implementing a signup functionality. When I submit the signup details using the submit button, I encounter the following error:
Import trace for requested ...
0
votes
1
answer
143
views
How do React Native uncontrolled components manage their state?
Do these components use refs as state? When we update the component ref, do we update the DOM directly? When we update the component's ref, does the component render and show the value or the change ...
0
votes
1
answer
48
views
Running useFormState dispatch with data
I want to validate data from a form before passing it to a server. For this, I want to direct the form action property to a function, which would validate the data on the client side and run the ...
1
vote
1
answer
1k
views
Using server action useActionState hook in Nextjs
I have a sign in form that is calling a server action and I'm using useActionState to handle the state of the form but I am getting a typescript error
Argument of type '(state: SignInFormInitialState, ...
-1
votes
1
answer
56
views
React Component not rendering [closed]
So I'm currently following a course and at this point to a tee, even checked his GitHub which is the same. The thing is, none of my Header.jsx component is rendering. Here is my Header.jsx code:
and ...
1
vote
0
answers
213
views
Tldraw and React portal, change handler issue
Have a problem:
I use Tldraw editor in my project, and have "full screen" mode for it. When user has the editor full-screened, he draws or removes some shapes and quits full screen mode.
...