477,046 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-2
votes
0
answers
11
views
What's the use of http status code like 30X and few headers like <Etags> in react application?
I’m trying to understand how HTTP redirect status codes (300, 301, 302, 303, 307, 308) and ETag caching (weak vs. strong validators) actually apply in a React SPA.
On the server side, I understand the ...
0
votes
1
answer
33
views
App Freezing when I submit a form using Actions in Next app?
I'm currently working on my first NextJS app after a long hiatus. The first thing I'm working on is a small app that's powered by Firebase.
After reading some documentation on Context and then ...
Best practices
0
votes
1
replies
44
views
Best way to initialize data in next js app router with zustand
I’m building an e-commerce type website in Next.js where there are multiple sections of stores. Each store card has a heart icon to mark it as a favourite.
The same store can appear in:
multiple ...
-3
votes
0
answers
55
views
React use.Effect not triggering [closed]
I'm trying to create a custom hook to load information about a specific asset but that doesn't work even though everything is set up correctly.
I already tried to log within the useEffect callback ...
Advice
1
vote
1
replies
39
views
I would like to know why the ref in my onMessage handler requires spreading before flushing
Here is my on message handler:
const onMessage = (event: MessageEvent) => {
try {
const message = JSON.parse(event.data);
const normalizedMsg = Array.isArray(message) ? message : [...
1
vote
0
answers
33
views
Module Federation with React Vite: React-Three-Fiber Canvas Not Loading, "Cannot read properties of undefined (reading 'current')" [closed]
I'm building a React Vite application for 3D modeling using react-three-fiber. I recently integrated a microfrontend (MFE) using the module federation plugin and shared React and other core packages ...
-1
votes
0
answers
56
views
How can I render a React (Vite) component like Dashboard.jsx from my FastAPI backend to protect a route? [closed]
I have a React (Vite) frontend and a FastAPI backend.
I want to protect /dashboard so that unauthenticated users cannot load or even download the Dashboard.jsx component.
My idea was:
Don’t include ...
1
vote
0
answers
28
views
How to make custom Web Components with Tailwind CSS react to container width instead of window.innerWidth? [closed]
I have a service built with Vite + Tailwind CSS.
Using Web Components, I made it possible to embed the entire service into other websites.
Everything works fine style-wise, but I've encountered a ...
-1
votes
0
answers
17
views
How to debug on stage environment on AEM Cloud for custom service Interface and implementation class
We have a popup functionality that works fine on AEM as a Cloud in Dev and Local environments, but it’s not working in Stage and Prod.
Here’s the setup:
We are using Sling Model Exporter and an AEM ...
1
vote
2
answers
58
views
tailwind classes are loaded but coloring css variables no applied
I am using TailwindCSS in my React + Vite project, and the classes are loaded correctly. The UI looks complete.
The problem is that colors from variables defined in tailwind.config.js are not applied.
...
0
votes
1
answer
20
views
multi-select jumps to old selection if clicked and updates properly later
In my react application I have a simple html select that has the multiple attribute set.
When the selection changes a server request is issued and afterwards the component is re-rendered.
The problem ...
Best practices
0
votes
2
replies
44
views
React RTK Typescript: Using `ReturnType<AppStore['getState']>` vs `ReturnType<typeof store.getState>` when inferring RootState type
I've been reading up on React/Redux documentation, specifically on setting up types for the main redux application store, and was wondering if there are any significant differences when it comes to ...
Tooling
0
votes
0
replies
31
views
Azure App Service: Extracting a 60MB node_modules ZIP takes longer than running npm install — how to speed this up?
I have an automated deployment tool that generates a React or Angular project, uploads it to Azure App Service, and then restores node_modules to reduce build time.
To avoid running npm install on ...
-1
votes
0
answers
30
views
Displaying/Rendering multiple TIFF/GeoRaster layers on React-Leaflet Map
I'm working on a React project where I'm using React-Leaflet and need to display GeoTIFF (.tif) layers on multiple maps within the same page.
Overview: I have several Leaflet maps rendered ...
-1
votes
0
answers
34
views
Is there a way to call the tRPC client with tRPC and @tanstack/react-query setup?
I have set up my tRPC backend as per the docs which I'll paste in below. My issue is using it with @tanstack/react-query works perfect for 90% of my use cases but I can't physically call my backend ...