476,839 questions
1
vote
1
answer
37
views
Tailwind height from array not working in Next.js
I’m using Next.js with Tailwind CSS. I have an array of objects and I map over it to render sections. Each item has a height value that should control the Tailwind height class.
const segments = [
...
-3
votes
0
answers
32
views
Need help integrating SCEditor in my React App with React Hook Form [closed]
I'm building an App with Vite, React, SCEditor, and React-Hook-Form (RHF).
The problem is that SCEditor is a Javascript editor, there is no "React Version".
But its also the only decent, ...
0
votes
2
answers
36
views
HttpOnly SameSite=None cookie not persisted on mobile, works on desktop
I'm working on a Spring Boot backend with React frontend. I'm setting an HttpOnly cookie for refresh tokens like this:
@NotNull
private ResponseEntity<String> getStringResponseEntity(...
-2
votes
0
answers
37
views
TypeScript not giving error when type is inferred in contrary to explicitly typed [closed]
I have a situation where I want TypeScript to give me an error.
If I infer the type from Awaited<ReturnType<typeof getPlaylistTracks>>['items'][number]; it gives me no error:
However, if ...
Advice
0
votes
2
replies
28
views
Sending a message to server upon initial connect via signalr
I'm building a simple application with a asp.net backend, and a regular react application as frontend. I'm trying out SignalR and wondering if it's posible to send data to the server via the initial ...
-2
votes
0
answers
52
views
Append to a plain array when fetching new data [closed]
I want to implement a file browser, in React and Relay, that's feed by a GraphQL API. Two usage scenarios need to be supported:
The root directory gets returned and then then the user expands ...
-1
votes
0
answers
42
views
React Sigma graph search options do not refresh when graph is reloaded using useLoader hook [closed]
I am using React Sigma to create graphs dynamically from a JSON object. I am using the loadGraph hook to the create the graph as described here
I am also using the GraphSearch feature described here
...
-2
votes
1
answer
64
views
x-modelable not working inside React component [closed]
I am building a documentation page in MDX and I have a component that initializes a new Alpine tree. For some reason the exact example for x-modelable found in the Alpine documentation is not working. ...
0
votes
0
answers
54
views
Set Data Twice in react-signature-canvas
I have a signature canvas on a form. When the form loads an existing report, it may already have signature data to load. In that case, in a useEffect, I call fromData on the signature component to ...
0
votes
1
answer
57
views
Azure EasyAuth auth/me returns 401 after login
I have setup easyAuth in azure. It returns a 401 when i am not authenticated.
basically i can do:
www.MyApi.com/.autm/me => 401.
In my fe i make this call and it retruns a 401 where i then forward ...
-6
votes
1
answer
58
views
I want to insert in [closed]
I am trying to insert data in supbase were there are two tables one is city table and second is position table by using supabase REST API.
My data structure is
{"cityName":"Alfajarin&...
0
votes
2
answers
51
views
Jest cannot test an isolated module in a multi-module npm architecture [closed]
In openIMIS, each frontend module (@openimis/fe-core, @openimis/fe-insuree, etc.) is a separate npm package, and all are bundled together using Webpack.
Problem: Jest requires that all direct and ...
-1
votes
0
answers
34
views
React session not persisted in Chrome when reopening an old tab (SSO + PrivateRoute issue) [closed]
I'm facing a strange authentication issue in a React + ASP.NET backend (SSO-based login) application that only occurs in Chrome when an old tab is reused (especially on a remote desktop connection).
...
-1
votes
0
answers
83
views
Unexpected Gray Background in react-native-gifted-charts LineChart with Transparent Configuration [closed]
Description: I am using react-native-gifted-charts in my React Native (Expo) application to display an expense trend graph. Despite configuring the LineChart to have a transparent background and ...
-1
votes
0
answers
20
views
Accessing document.currentScript.src inside a React component [duplicate]
I want to access document.currentScript.src to get the domain of the current executing script for use in a React component.
When I try to access it like this, it works fine.
const scriptSrc = document....