476,914 questions
0
votes
1
answer
14
views
Why doesn’t TypeScript infer null in my function’s return type?
I'm using TypeScript 5.5.2 and I have a helper function that can return either an object or null.
However, TypeScript only infers the object type and completely ignores null in the return type.
Here ...
Advice
0
votes
0
replies
16
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
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
0
answers
40
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
38
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
33
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
24
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 ...
Best practices
0
votes
3
replies
45
views
Source of truth: state (zustand) vs url (react router)
I've got a question!
I have an app where I use Zustand for my state management. For example I have states for the currentProject, current dataset and current view which decides what it shown.
I now ...
-1
votes
0
answers
24
views
OAuth Callback Route Not Matching After Deployment (Vite + React on Vercel, Express Backend on Render)
I’m building a dynamic form builder using Airtable’s OAuth PKCE flow.
My stack is:
Frontend: React + Vite on Vercel
Backend: Node.js + Express on Render
OAuth provider: Airtable
The OAuth flow works ...
-3
votes
0
answers
28
views
As a beginner React developer, what is the best path to start learning mobile app development? [closed]
I am a fresh developer and my current tech stack includes:
React.js for frontend
Node.js and Laravel for backend
I have built dashboards, CRUD operations, forms, API integrations, and some full-...
1
vote
2
answers
56
views
Optimize Hook Render Times
This is the hook I use to activate the navbar item when its section is visible in the screen, for example: section with id "#howtoorder" is in the visible part of the screen, then the navbar ...
0
votes
1
answer
71
views
React useEffect cleanup function not executing [duplicate]
I have a page that on load, executes the following effect to retrieve data from a server
const nav = useNavigation();
const loc = useLocation();
const [card, setCard] = useReducer(statefn, ...
1
vote
1
answer
45
views
Next.js 15+ Promise-based params and warning about "async Client Component. Only Server Components can be async at the moment."
Upon upgrading to Next.js 15+, per this thread (as well as this one), I refactored my Page.TSX components to have Promise-based params inside an async component function, which was required:
'use ...
-2
votes
0
answers
45
views
Bold Reports Viewer not sending POST request to ASP.NET Core Web API data source in React app [closed]
I am trying to load data into a Bold Reports viewer component inside a React application.
The report is configured to use an ASP.NET Core Web API endpoint as its data source.
I added ajaxBeforeLoad ...