476,706 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
1
vote
3
replies
57
views
How to keep a "global" React Error Boundary config but only show fallback locally?
I’m using a React Error Boundary and I understand that when an error is caught, React discards the subtree inside the nearest boundary and renders that boundary’s fallback.
Right now I have a single "...
-2
votes
0
answers
72
views
Why does useEffect placement relative to an "unreachable" early return change child component re-render behavior? [duplicate]
Nextjs 16, React 19.2, React Hook Form 7.6
I have encountered a very weird behavior of useEffect and unreachable early return. See here:
"use client";
import React, { useState, useEffect } ...
-3
votes
0
answers
33
views
Express route sends response before async operation completes (no error, but data is undefined) [duplicate]
I’m facing an issue where my API returns undefined even though the database query runs successfully.
API responds with undefined or empty object
No error is thrown
Console logs inside the database ...
-4
votes
0
answers
59
views
Japanese spam – how is this possible and how to fix it? [closed]
My client’s website is built with Next.js and hosted on AWS (CloudFront + S3 / EC2).
Recently, Japanese SEO spam URLs started appearing in Google search results.
These URLs show Japanese text and spam ...
Best practices
2
votes
3
replies
57
views
Best Practices React Native Repositories
I'm building an React Native mobile app, so I'm searching for a repository to get as inspiration, because any video or repository I found didn't looks reliable enough to follow as a guide. I'm needing ...
-3
votes
0
answers
96
views
Why do useEffect and an early return affect child re-renders when using react hook form in React? [closed]
I have encountered a weird situation and I am pretty sure there is bug either in react-hook-form(7), React (19) or nextjs (16). Below details:
"use client";
import React, { useState, ...
1
vote
0
answers
67
views
Is React 18 with react-server-dom canary builds vulnerable to CVE-2025-55182?
I’m maintaining a React 18 project and I’m trying to assess the impact of CVE-2025-55182 (React Server Components/"React2Shell").
Most advisories mention affected versions in the React 19 ...
-3
votes
1
answer
37
views
React: Calculate dynamic "Shrink to Fit" (Contain) overlay coordinates for an image with different aspect ratios [closed]
I am building a photo printing UI in React where users select a physical print size (e.g., 6x4, 5x7) and need an overlay to represent the "Paper."
I need to implement a "Shrink to Fit&...
-3
votes
0
answers
64
views
Authorized routing issue in browserrouter in react [closed]
I have an issue with my router.tsx. The problem seems to be somewhere in the student layout, but I cannot figure out what is wrong.
As soon as I try to open localhost:5173/, it immediately checks ...
1
vote
1
answer
64
views
React Native video player getting resize in landscape mode
I am trying to create a react native video player using react native video library and when I switch to landscape mode by clicking on fullscreen icon video playing in landscape mode with full width ...
1
vote
1
answer
122
views
Calling setState synchronously within an effect can trigger cascading renders
I get the warning "Calling setState synchronously within an effect can trigger cascading renders" for my useEffect:
useEffect(() => {
if (positionData.length > 0) {
const ...
Best practices
0
votes
0
replies
57
views
Latest leaf selected in MantineUI Tree component
I'm trying to use MantineUI Tree component with very simple tree data:
const treeData: TreeNodeData[] = [
{
label: "parent 1",
value: "1",
children: [
...
0
votes
0
answers
64
views
Paginated table causes duplicate rows or infinite loop when sorting [closed]
I’m building a reusable paginated table component using React + Inertia.js.
The table supports:
server-side pagination
sorting
searching (debounced)
filters
bulk actions
Problem
I’m facing two ...
1
vote
1
answer
41
views
Unable to update data in redux toolkit
I'm making a CRUD app using Redux Toolkit. It includes all the basic operations, but the Update operation doesn't work as expected. Please take a look at the following code.
postSlice.js
export const ...
1
vote
2
answers
59
views
Expo Router not working in Nx monorepo – stuck on splash / welcome screen
What I’ve done so far
1. Installed Expo Router.
"expo-router": "~6.0.21"
2. Updated package.json
{
"main": "expo-router/entry"
}
3. Updated app.json
{
&...