476,921 questions
-1
votes
1
answer
22
views
React useEffect with div reference dependency updated on first setState in component [duplicate]
Here is minimal component code. I can't figure out why Container ref effect is being called twice. First when div is actually created, second time when increment button is pressed for the first time. ...
-1
votes
0
answers
7
views
AG Grid Server-Side: hasMorePages Ignored When Returned Row Count < Page Size
I’m using React with AG Grid Server-Side Row Model (SSR). I have a situation where the backend returns fewer rows than the page size, but still indicates that hasMorePages = true because the user has ...
0
votes
0
answers
22
views
Why is my setter is grabbing the wrong ID? [duplicate]
I'm using Firebase for my database, as well as HTML, CSS and jsx for the frontend.
I have the following dropdown menu:
<select
className="seleccionar-empresa"
...
-3
votes
1
answer
41
views
Why isnt my modal being hidden after I set the variable in the condition to 'false'? (React) [duplicate]
I've made this simple modal in React with an if condition attached to a variable. If that variable is 'true', the modal shows up. If not, then it stays hidden. I've been testing out a bit and, while ...
-1
votes
0
answers
26
views
TradingView Widget is wider than other components in same column despite grid sizing
I'm building a Next.js app with a grid layout. I have multiple components in the same column, but my TradingView "Top Stories" widget is wider than the others, even though they share the ...
-1
votes
0
answers
22
views
How to render NotFoundComponent with thrown notFound in Tanstack Start?
I'm fiddling with Tanstack Start and is having issue with returning Not Found component when the username doesn't exist for `/:username page.
export const getProfileByUsername = createServerFn({ ...
-3
votes
0
answers
27
views
How to use - use hook from react19 and i18n - both the lib exporting the use function
I have a plan to update from react 18.3 to react 19 and make use of the new api's in react and found this hook in react 19 to resolve promise data -> use from react, and we have use function in ...
Advice
1
vote
2
replies
36
views
Server-side autocomplete for ~1200 schools in Supabase/Postgres — need typo/acronym-tolerant, low resource usage
Problem:
I have a React + TypeScript site with ~1200 schools stored in Supabase (PostgreSQL). The page only loads the first ~20 schools to reduce API usage, so full client-side matching isn’t possible ...
-1
votes
0
answers
36
views
Determine mouse position relative to an html element react [closed]
I have an app that contains a canvas I am drawing to. I use the current code below to calculate the mouse position (bound to the onMouseMove event):
function positionInComponent(e: MouseEvent): ...
-1
votes
0
answers
50
views
How to prevent memory leak when using useEffect with WebSocket connections in React?
I'm building a real-time chat application using React and WebSocket. I'm experiencing memory leaks when users navigate between different chat rooms. Each time a user switches rooms, a new WebSocket ...
0
votes
1
answer
60
views
Next.js 16 crashes on Windows 11 when opening localhost:3000
Next.js 16 dev server exits on Windows 11 silently when opening localhost:3000.
Recently I've got the vunerability notice from the vercel regarding the critical RCE vulnerability affecting React ...
Advice
0
votes
3
replies
43
views
360 degree image in react - Panning, zooming, rotating
I'm new to stack overflow so i m not sure how to do everything right.
I'm currently working on a university project where we have to make a website that displays some 360 degree photos. I have to code ...
-3
votes
0
answers
47
views
i am using react leaflet library to use map but i am getting a error that navigate is not define and using react-vite [closed]
context : i am using react leaflet library to use map but i am getting a error that navigate is not define and using vite
function ChangeCenter({ position }) {
const map = useMap();
map....
-4
votes
0
answers
34
views
Phonepe Payment integration [closed]
So i have been working in multitenant ecom site using node and react and using env.local for environment variables and i am facing issue while integrating phonepe. i think i am using wrong env ...
-3
votes
0
answers
25
views
Cpanel- Still seeing the Old website even though i deleted all its files and replaced it with new ones [closed]
I'm stuck on a weird issue with a shared hosting cPanel environment and hoping someone here has seen this before.
I recently replaced an old static Next.js site with a new React (Vite) build. The new ...