id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79978184
stackoverflow
FRONTEND_DEVELOPMENT
React Hook Form validation across multiple tabs: is useWatch + custom validation the right approach?
React Hook Form validation across multiple tabs: is useWatch + custom validation the right approach? I am working on a React application where a single form is divided across multiple tabs. The form is managed using React Hook Form, while each tab contains a separate group of fields. The issue is that the Add or Updat...
https://stackoverflow.com/questions/79978184/react-hook-form-validation-across-multiple-tabs-is-usewatch-custom-validation
best-practices, javascript, reactjs, react-hook-form
1,783,583,263
se_79971738
stackoverflow
FRONTEND_DEVELOPMENT
How to encrypt and decrypt specific fields in a React Context before storing them in Firestore?
How to encrypt and decrypt specific fields in a React Context before storing them in Firestore? // UserContext.jsx — global user profile state // Handles missing Firebase gracefully (works without credentials during dev) import { createContext, useContext, useState, useEffect } from 'react'; import { auth } from '../...
https://stackoverflow.com/questions/79971738/how-to-encrypt-and-decrypt-specific-fields-in-a-react-context-before-storing-the
javascript, reactjs, firebase, google-cloud-firestore
1,782,825,264
se_74084164
stackoverflow
FRONTEND_DEVELOPMENT
React native android app is showing blank white screen after building
React native android app is showing blank white screen after building In the above image, you can see that the app has been built successfully and has started the metro bundler. If I try to click on R, It is saying that no device is connected even though the app is running on an emulator. The above is the screen I'm...
https://stackoverflow.com/questions/74084164/react-native-android-app-is-showing-blank-white-screen-after-building
android, reactjs, react-native, expo
1,665,886,096
se_70334925
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: Cannot read properties of undefined (reading 'url')
TypeError: Cannot read properties of undefined (reading 'url') I'm working on building a drag and drop card game. I'm not familiar with using the library react-dnd I wonder if this has something to do with it. If I use data already on the file, it works fine, but if I have to fetch the data, it creates This er...
https://stackoverflow.com/questions/70334925/typeerror-cannot-read-properties-of-undefined-reading-url
javascript, reactjs, react-dnd
1,639,399,679
se_65570183
stackoverflow
FRONTEND_DEVELOPMENT
How to solve for: net::ERR_CONNECTION_REFUSED when GET data to React?
How to solve for: net::ERR_CONNECTION_REFUSED when GET data to React? I'm trying to get this API call to work using axios: const getData = () => { Axios.get("http://localhost:3000/security?select=symbol,company", {headers: {Authorization: 'Bearer 73Ntx3b6SwNXC7ANV3tw4wFfDdKntB26', "Access-Contr...
https://stackoverflow.com/questions/65570183/how-to-solve-for-neterr-connection-refused-when-get-data-to-react
javascript, reactjs, nginx, axios, postgrest
1,609,796,283
se_78532340
stackoverflow
FRONTEND_DEVELOPMENT
How can define columnDefs with correct type for AgGridReact?
How can define columnDefs with correct type for AgGridReact? I am using ag-grid-react librray. I have defined a hook as follows: import { useCallback, useEffect, useRef, useState } from "react"; import { AgGridReact } from "ag-grid-react"; import "ag-grid-charts-enterprise"; import "ag-grid-community/styles/ag-grid.c...
https://stackoverflow.com/questions/78532340/how-can-define-columndefs-with-correct-type-for-aggridreact
reactjs, ag-grid, ag-grid-react
1,716,637,312
se_73074482
stackoverflow
FRONTEND_DEVELOPMENT
How to get the TipTap Editor to recognize updated external state values
How to get the TipTap Editor to recognize updated external state values This is likely an issue with my inexperience using React generally, but I'd still greatly appreciate any insights. I've added a commenting plugin to the TipTap editor. When I create a new comment, it creates a DB record for the comment and I stor...
https://stackoverflow.com/questions/73074482/how-to-get-the-tiptap-editor-to-recognize-updated-external-state-values
reactjs, tiptap
1,658,456,809
se_79969040
stackoverflow
FRONTEND_DEVELOPMENT
How do I make web interactive maps with GO and React?
How do I make web interactive maps with GO and React? I am making pet-project with Go and React. I want to make web app, that for start, shows your location on a interactive world map. How should I make app logic with Go and React, so it would be optimized and "right"? How should I store map and request it from front?...
https://stackoverflow.com/questions/79969040/how-do-i-make-web-interactive-maps-with-go-and-react
reactjs, postgresql, go, web
1,782,672,866
se_79966606
stackoverflow
FRONTEND_DEVELOPMENT
Having issues passing and calling reducer dispatch function to/in child component in Reactjs
Having issues passing and calling reducer dispatch function to/in child component in Reactjs I am having what I'm sure is a really simple issue that I haven't been able to solve yet. I have a parent component and a child component, and I am trying to pass the dispatch made in the parent component to the child and hav...
https://stackoverflow.com/questions/79966606/having-issues-passing-and-calling-reducer-dispatch-function-to-in-child-componen
reactjs
1,782,350,284
se_64367591
stackoverflow
FRONTEND_DEVELOPMENT
React app not working in Safari. Working fine on Chrome and FireFox but giving black layout for safari
React app not working in Safari. Working fine on Chrome and FireFox but giving black layout for safari My react app works in every browser, But not working in Safari on MacOS(Catalina OS & Version 13.1.2 ). I get no error, no console message, nothing that would give me some idea. It only renders blank screen in Safari...
https://stackoverflow.com/questions/64367591/react-app-not-working-in-safari-working-fine-on-chrome-and-firefox-but-giving-b
javascript, reactjs, docker, safari, cross-browser
1,602,750,218
se_47099604
stackoverflow
FRONTEND_DEVELOPMENT
Failed to load https://login.microsoftonline.com/common/oauth2/v2.0/token
Failed to load https://login.microsoftonline.com/common/oauth2/v2.0/token I'm trying to get a token using the Outlook REST API after I got the code from this url https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize I used a POST request with axios but the issue is I got this error: Response to preflig...
https://stackoverflow.com/questions/47099604/failed-to-load-https-login-microsoftonline-com-common-oauth2-v2-0-token
reactjs, azure-active-directory, axios, outlook-restapi
1,509,723,945
se_79968688
stackoverflow
FRONTEND_DEVELOPMENT
Next.js Suspense streaming works in StackBlitz/VS Code browser but is buffered in Chrome/Firefox/Edge due to local AV/proxy
Next.js Suspense streaming works in StackBlitz/VS Code browser but is buffered in Chrome/Firefox/Edge due to local AV/proxy When the Meals Link is clicked, the whole MealsPage is displayed after a deliberate 3s delay. The page has 2 parts, the header and the actual meal content. The static sections of the meals page s...
https://stackoverflow.com/questions/79968688/next-js-suspense-streaming-works-in-stackblitz-vs-code-browser-but-is-buffered-i
javascript, reactjs, next.js
1,782,577,966
se_68940284
stackoverflow
FRONTEND_DEVELOPMENT
React-Hook-Form and preventDefault on handleSubmit
React-Hook-Form and preventDefault on handleSubmit I've been using ReactHookForm (RHF) for a while now and i'm fairly happy with it. I'm by no means a pro though. I currently have a page with multiple seperate forms on it. When ever you submit the form and use RHF's handleSubmit i get a page reload. It looks to me lik...
https://stackoverflow.com/questions/68940284/react-hook-form-and-preventdefault-on-handlesubmit
reactjs, react-hook-form
1,629,987,528
se_72982988
stackoverflow
FRONTEND_DEVELOPMENT
npm Err! code E401, Incorrect or missing password
npm Err! code E401, Incorrect or missing password Everyone When I was trying to install node modules using npm install facing issue. I removed package.lock.json file but still facing issue npm ERR! code E401 npm ERR! Incorrect or missing password. npm ERR! If you were trying to login, change your password, create an n...
https://stackoverflow.com/questions/72982988/npm-err-code-e401-incorrect-or-missing-password
node.js, reactjs, npm
1,657,812,321
se_79972741
stackoverflow
FRONTEND_DEVELOPMENT
How to implement role-based navigation in a React Navbar using Context API and React Router?
How to implement role-based navigation in a React Navbar using Context API and React Router? import { useState } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { Menu, X, Target, Receipt, ScanSearch, TrendingUp, Home, ShieldAlert, BookOpen, User, LogOut } from 'lucide-react'; i...
https://stackoverflow.com/questions/79972741/how-to-implement-role-based-navigation-in-a-react-navbar-using-context-api-and-r
javascript, reactjs, react-router, navbar
1,783,015,228
se_78887929
stackoverflow
FRONTEND_DEVELOPMENT
Rendering Large PDFs in Chunks Using React-PDF (PDF.js)
Rendering Large PDFs in Chunks Using React-PDF (PDF.js) I'm trying to render a large PDF file from my S3 storage in chunks using React-PDF (PDF.js). I'm fetching the first 64KB of the PDF with a byte range request, but the PDF fails to load, showing the error "Failed to load PDF document." My goal is to load the first...
https://stackoverflow.com/questions/78887929/rendering-large-pdfs-in-chunks-using-react-pdf-pdf-js
reactjs, typescript, pdf, amazon-s3, react-pdf
1,724,070,830
se_42340292
stackoverflow
FRONTEND_DEVELOPMENT
how to add toggleClass in react js
how to add toggleClass in react js I having List of li, that li is repeating in map function each li having same click event, when i click on current li i need to add active class for that li. when click again the same li i need to remove the active class, the class should be remove when i click the same li only. like...
https://stackoverflow.com/questions/42340292/how-to-add-toggleclass-in-react-js
reactjs
1,487,581,510
se_70275683
stackoverflow
FRONTEND_DEVELOPMENT
Understanding the logic behind a simple calculator, with useState?
Understanding the logic behind a simple calculator, with useState? So I'm trying to make a simple calculator with only 5 buttons: - '1' - '2' - '+' - '=' - '0'. The idea is to make it work like a proper calculator (after I figure out this logic I would make a normal calculator). I understand the reset button ('0') on...
https://stackoverflow.com/questions/70275683/understanding-the-logic-behind-a-simple-calculator-with-usestate
reactjs, use-state
1,638,969,548
se_73578068
stackoverflow
FRONTEND_DEVELOPMENT
How to do role based access routing in react
How to do role based access routing in react I want to give permissions to some pages to users, some more pages access to manager and all pages access to admin. if user admin loggedin const role = 'admin' {role === 'admin' ? ( <> <Route path='/' component={Home} /> <Route path='/products/' exact={t...
https://stackoverflow.com/questions/73578068/how-to-do-role-based-access-routing-in-react
reactjs, react-router-dom
1,662,095,951
se_79975046
stackoverflow
FRONTEND_DEVELOPMENT
react-router OR react-router-dom
react-router OR react-router-dom I had a question about why we need to have two types of react-router and react-router-dom and I wanted to understand the difference between these two packages and which one is better for today's webs and has better usability. I am currently working on the react-router version and learn...
https://stackoverflow.com/questions/79975046/react-router-or-react-router-dom
reactjs, react-router, advice
1,783,343,856
se_73380019
stackoverflow
FRONTEND_DEVELOPMENT
How do I pass in an authorization header with the pdf url in react-pdf-highlighter?
How do I pass in an authorization header with the pdf url in react-pdf-highlighter? I'm trying to use react-pdf-highlighter for highlighting certain fields on a pdf that were read by an OCR program. The current pdf view uses react-pdf which allows me to pass in an authorization header along with the url for the pdf. I...
https://stackoverflow.com/questions/73380019/how-do-i-pass-in-an-authorization-header-with-the-pdf-url-in-react-pdf-highlight
reactjs
1,660,682,048
se_76849276
stackoverflow
FRONTEND_DEVELOPMENT
Can&#39;t get Material UI (MUI) to work in my react app
Can&#39;t get Material UI (MUI) to work in my react app I installed materialUI, emotion/react and emotion/styled as required but can't get MUI to work on my react app. Nothing shows up on my webpage and theres no errors or anything in the console Here's the code: import { Button } from '@mui/material'; import './App.c...
https://stackoverflow.com/questions/76849276/cant-get-material-ui-mui-to-work-in-my-react-app
javascript, reactjs, material-ui
1,691,389,873
se_71046385
stackoverflow
FRONTEND_DEVELOPMENT
Reload react component without reloading the page
Reload react component without reloading the page I have component and function "handleAvatarUpload". After onChange I want to reload only component not whole page. Now after change function reload whole page "only for tests". How can I reload only a component in the same place where now I put page reload? import Reac...
https://stackoverflow.com/questions/71046385/reload-react-component-without-reloading-the-page
reactjs, typescript
1,644,396,165
se_60590822
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: The &quot;original&quot; argument must be of type Function
TypeError: The &quot;original&quot; argument must be of type Function I am getting this error when trying to require tfjs-node in my electron react application. This issue wasn't happening before when I did not have react installed and I think it is due to something in the webpack require configuration. const tf = re...
https://stackoverflow.com/questions/60590822/typeerror-the-original-argument-must-be-of-type-function
node.js, reactjs, webpack, tfjs-node
1,583,692,756
se_77267835
stackoverflow
FRONTEND_DEVELOPMENT
Passing useRef to child component as a props in react
Passing useRef to child component as a props in react React newbie here. I found out this is not the correct way to pass useRef() to child components but why is it not throwing an error and seems to be working fine. const App = () => { const todoRef = useRef(null); const [todos, setTodos] = useState([]); c...
https://stackoverflow.com/questions/77267835/passing-useref-to-child-component-as-a-props-in-react
javascript, reactjs, react-hooks
1,696,958,718
se_60850785
stackoverflow
FRONTEND_DEVELOPMENT
Webpack - TypeError: $ is not a function
Webpack - TypeError: $ is not a function i am new to webpack and i am creating a react application using webpack. I am getting this error while compiling TypeError: $ is not a function. I am not using jquery but my node modules include some third party libraries. I was only able to find one related article to this...
https://stackoverflow.com/questions/60850785/webpack-typeerror-is-not-a-function
reactjs, webpack, babeljs, babel-loader, html-webpack-plugin
1,585,146,138
se_79966677
stackoverflow
FRONTEND_DEVELOPMENT
Scaling a large Next.js SaaS frontend: architecture before introducing tests?
Scaling a large Next.js SaaS frontend: architecture before introducing tests? I'm working on a fairly large SaaS product built with Static Next.js. The application supports multiple business configurations/tenants and consumes GraphQL APIs. As the product has grown, the frontend has accumulated a lot of domain-specifi...
https://stackoverflow.com/questions/79966677/scaling-a-large-next-js-saas-frontend-architecture-before-introducing-tests
reactjs, next.js, web-applications, architecture, frontend
1,782,368,212
se_66155850
stackoverflow
FRONTEND_DEVELOPMENT
InvalidStateError: Failed to execute &#39;transaction&#39; on &#39;IDBDatabase&#39;: The database connection is closing with ios safari
InvalidStateError: Failed to execute &#39;transaction&#39; on &#39;IDBDatabase&#39;: The database connection is closing with ios safari I have issue since Aug 2020 and i still don't know how to reproduce, I am using dfahlander/Dexie.js to use browser indexedDB. This is sample of how i am using dexie:- import db from "...
https://stackoverflow.com/questions/66155850/invalidstateerror-failed-to-execute-transaction-on-idbdatabase-the-databas
javascript, reactjs, indexeddb, dexie
1,613,050,710
se_61634246
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: Cannot read property startsWith of undefined
TypeError: Cannot read property startsWith of undefined import React from 'react'; import AttributeDescription from './AttributeDescription'; class CompEntry extends React.Component{ render(){ let description; if(this.props.description.startsWith("_")){ description= this.props.description.slice(1,...
https://stackoverflow.com/questions/61634246/typeerror-cannot-read-property-startswith-of-undefined
javascript, reactjs
1,588,765,119
se_31204442
stackoverflow
FRONTEND_DEVELOPMENT
How can I render a React component from within a function?
How can I render a React component from within a function? Is there some way to make the following to work? I want to pass "welcome" to the onClick event for example and it should render a component with that name to specified DIV. I would like it to be dynamically named, but I can settle for switch(index) :) var Menu...
https://stackoverflow.com/questions/31204442/how-can-i-render-a-react-component-from-within-a-function
javascript, reactjs
1,435,918,960
se_79918953
stackoverflow
FRONTEND_DEVELOPMENT
Do I learn React before JavaScript? I&#39;m confused
Do I learn React before JavaScript? I&#39;m confused How do I learn JavaScript as a beginner frontend developer? What resources do I need (video links and written materials)? Also, would you advise diving right into React from CSS? React seems to be so complex. What do I do? I'm confused.
https://stackoverflow.com/questions/79918953/do-i-learn-react-before-javascript-im-confused
javascript, reactjs
1,775,125,552
se_66809494
stackoverflow
FRONTEND_DEVELOPMENT
i18next/i18n Change Language not working with the whole website
i18next/i18n Change Language not working with the whole website I'm doing a react-typescript app where I need to be able to translate the site. I'm using the i18next library. In the main page the user can change the language using a button which runs this method. changeLang(lang:string):any{ i18next.changeLang...
https://stackoverflow.com/questions/66809494/i18next-i18n-change-language-not-working-with-the-whole-website
html, reactjs, typescript, internationalization, i18next
1,616,719,183
se_51231324
stackoverflow
FRONTEND_DEVELOPMENT
Flow property missing in object type
Flow property missing in object type I have the following Flow Props type for a component: type Props = { // <...> update: ({ dates?: DateRange }) => void }; I also have the following exported type: export type SearchContextType = { // <...> update: ({ dates?: DateRange, location?: Location }) => void }; ...
https://stackoverflow.com/questions/51231324/flow-property-missing-in-object-type
reactjs, flowtype
1,531,047,754
se_78779573
stackoverflow
FRONTEND_DEVELOPMENT
Tanstack react table managing globalFilter in URL in stead of state
Tanstack react table managing globalFilter in URL in stead of state I am using Tanstack react table in my NextJS application. I have implemented a search field with globalFilter, worked fine. I want to manage the state in the URL in stead of the state so search results and views are shareable between users of the app....
https://stackoverflow.com/questions/78779573/tanstack-react-table-managing-globalfilter-in-url-in-stead-of-state
javascript, reactjs, next.js, react-hooks, tanstack-table
1,721,662,398
se_43573097
stackoverflow
FRONTEND_DEVELOPMENT
Expand a text box to grow to fit its content with CSS?
Expand a text box to grow to fit its content with CSS? I'm trying to get a content editable text box (div element) to grow as needed to fit the text typed into it, up to 80% of the width of the parent div. Is there any way to do this with just CSS? If not, I'm open to Javascript solutions, but I am using React, which...
https://stackoverflow.com/questions/43573097/expand-a-text-box-to-grow-to-fit-its-content-with-css
html, css, reactjs, sass
1,492,961,746
se_79973910
stackoverflow
FRONTEND_DEVELOPMENT
How should I structure a React layout component with Navbar and Outlet?i
How should I structure a React layout component with Navbar and Outlet?i I am working on a React app using react-router-dom. I have a layout component that renders a Navbar, an Outlet, and also accepts children. I also have a reusable Hero component for page headers. The code works, but I am confused about the correct...
https://stackoverflow.com/questions/79973910/how-should-i-structure-a-react-layout-component-with-navbar-and-outleti
reactjs, components, outlet
1,783,063,337
se_75540890
stackoverflow
FRONTEND_DEVELOPMENT
Why cannot a compiled Spring Boot + React project find React build files?
Why cannot a compiled Spring Boot + React project find React build files? I am finished developing a prototype of a project that is due for user testing in several days, and it works as expected when tested in the IDE. The backend is in Spring Boot, built in STS4 and the frontend is React, built in VS Code. As a part ...
https://stackoverflow.com/questions/75540890/why-cannot-a-compiled-spring-boot-react-project-find-react-build-files
reactjs, spring-boot, war, packaging
1,677,130,021
se_79873826
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS variant class not overriding base styles in React component
Tailwind CSS variant class not overriding base styles in React component I’m working on a React + TypeScript project using Tailwind CSS (with @layer components and @apply) and I’m facing an issue where a variant modifier class is not overriding styles as expected. I have this reusable component: export default functio...
https://stackoverflow.com/questions/79873826/tailwind-css-variant-class-not-overriding-base-styles-in-react-component
reactjs, typescript, tailwind-css
1,769,091,687
se_79873562
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS generates incorrect compiled CSS for escaped characters of JavaScript strings
Tailwind CSS generates incorrect compiled CSS for escaped characters of JavaScript strings When passing a TailwindCSS class name as a string, I do not need to escape the backslash in order to include it as a string. Since TailwindCSS analyzes the source code directly, this also results in correctly generated CSS: <div...
https://stackoverflow.com/questions/79873562/tailwind-css-generates-incorrect-compiled-css-for-escaped-characters-of-javascri
javascript, reactjs, tailwind-css, backslash
1,769,074,090
se_62375722
stackoverflow
FRONTEND_DEVELOPMENT
Chrome Extension &#39;Could not load background script &#39;background.js&#39;. Could not load manifest&#39; using React
Chrome Extension &#39;Could not load background script &#39;background.js&#39;. Could not load manifest&#39; using React I'm trying to make my chrome extension open a new tab upon installation using the chrome.tabs API but I get the error 'Could not load background script 'background.js'. Could not load manifest.' Th...
https://stackoverflow.com/questions/62375722/chrome-extension-could-not-load-background-script-background-js-could-not-lo
javascript, reactjs, google-chrome, google-chrome-extension, create-react-app
1,592,154,389
se_60752510
stackoverflow
FRONTEND_DEVELOPMENT
Which React hook executes first useEffect or useLayoutEffect?
Which React hook executes first useEffect or useLayoutEffect? I have a component and I want to do some calculations right before rendering HTML on the screen. Since both useEffect and useLayoutEffect can handle this task, my question is having both of them in code, which of them will be triggered first, useEffect and ...
https://stackoverflow.com/questions/60752510/which-react-hook-executes-first-useeffect-or-uselayouteffect
javascript, reactjs, react-hooks
1,584,602,356
se_72528708
stackoverflow
FRONTEND_DEVELOPMENT
How to set up selected value in Select field of ant design so that it remains compatible with validation rule in reactJS?
How to set up selected value in Select field of ant design so that it remains compatible with validation rule in reactJS? I am using Muse Antd Design Template with antd version "antd": "^4.16.6". I have an ant design form where I am populating data before submitting the form to edit an existing record. currencyConvers...
https://stackoverflow.com/questions/72528708/how-to-set-up-selected-value-in-select-field-of-ant-design-so-that-it-remains-co
reactjs, validation, antd
1,654,593,179
se_70626954
stackoverflow
FRONTEND_DEVELOPMENT
Validate email input field form element
Validate email input field form element Possible to validate multiple emails seperated by commas with react-hook-form . So I have a material-ui text field which is uses react-hook-form for the validation.. Initial the input field takes a single email and it's being validated by the react-hook-form. currently I want th...
https://stackoverflow.com/questions/70626954/validate-email-input-field-form-element
reactjs, forms, material-ui, react-hook-form
1,641,588,144
se_70447501
stackoverflow
FRONTEND_DEVELOPMENT
getAllByRole - TestingLibraryElementError: Unable to find an accessible element with the role &quot;option&quot;
getAllByRole - TestingLibraryElementError: Unable to find an accessible element with the role &quot;option&quot; I am trying to learn how to unit test, and my first test is trying to test a selector dropdown menu. I am using react jest to test. When I try to access the options in the selector I get this error: Testing...
https://stackoverflow.com/questions/70447501/getallbyrole-testinglibraryelementerror-unable-to-find-an-accessible-element
reactjs, unit-testing, testing, jestjs
1,640,168,459
se_52918151
stackoverflow
FRONTEND_DEVELOPMENT
React form with &lt;Popup&gt; alert message instead of alert()
React form with &lt;Popup&gt; alert message instead of alert() I am trying to create a contact form in React. It sends the email. Everything is working fine. What I would like to achieve is to replace the alert('') with a better looking < Popup> message using react Popup package. Here is the code: import React, { Co...
https://stackoverflow.com/questions/52918151/react-form-with-popup-alert-message-instead-of-alert
reactjs, forms, popup, contacts
1,540,143,886
se_65803728
stackoverflow
FRONTEND_DEVELOPMENT
&quot;Error: expected a string or a class/function but got: undefined.&quot; Error in Reactjs even my Export and file sturcture is correct
&quot;Error: expected a string or a class/function but got: undefined.&quot; Error in Reactjs even my Export and file sturcture is correct I am beginner to Reactjs . I am making a Login page in Reactjs for which I have made another folder "Components" in "src" folder . Inside "Components" folder I made a "LoginSignUp....
https://stackoverflow.com/questions/65803728/error-expected-a-string-or-a-class-function-but-got-undefined-error-in-reac
javascript, reactjs
1,611,121,606
se_62575805
stackoverflow
FRONTEND_DEVELOPMENT
Convert blob to pdf file
Convert blob to pdf file Using react-pdf's BlobProvider, I'm trying to store the file to state. Here's what I tried: MyDocument = () => { return ( <Document> <Page size="A4" style={stylez.page}> <View style={stylez.section}> <Text>Section...
https://stackoverflow.com/questions/62575805/convert-blob-to-pdf-file
javascript, reactjs, react-pdf
1,593,089,527
se_60668999
stackoverflow
FRONTEND_DEVELOPMENT
React direct to a &quot;thank you&quot; page after submitting a form
React direct to a &quot;thank you&quot; page after submitting a form I made a simple form and after I hit the submit button of the form, I want it to automatically redirect to a "thankyou" page I have set up. Can anyone help me solve this. Currently, this is how I think it might work, but it keeps popping up errors. c...
https://stackoverflow.com/questions/60668999/react-direct-to-a-thank-you-page-after-submitting-a-form
javascript, reactjs
1,584,096,203
se_49171107
stackoverflow
FRONTEND_DEVELOPMENT
How to add and remove table rows Dynamically in React.js
How to add and remove table rows Dynamically in React.js my attempt fiddle here .......... https://jsfiddle.net/techboy0007/j1eas924/ https://i.sstatic.net/KXFot.png
https://stackoverflow.com/questions/49171107/how-to-add-and-remove-table-rows-dynamically-in-react-js
javascript, reactjs
1,520,505,655
se_66409127
stackoverflow
FRONTEND_DEVELOPMENT
React Lazy Load useEffect
React Lazy Load useEffect I have a problem getting clientWidth from useEffect. There is a lazyLoad which loads a page with users. import {Suspense, lazy} from 'react'; const UsersContainer = lazy (() => import ('./ users / users-container')); const Index = (props) => { return ( <Suspense fallback = {<div...
https://stackoverflow.com/questions/66409127/react-lazy-load-useeffect
reactjs, react-hooks, lazy-loading, use-effect
1,614,515,616
se_53046371
stackoverflow
FRONTEND_DEVELOPMENT
React- Webpack: Cannot read property &#39;tap&#39; of undefined
React- Webpack: Cannot read property &#39;tap&#39; of undefined I have a React application configured with Django Application. I have different webpack config files for development and production, When I run "npm run start", it gives me error that: Cannot read property 'tap' of undefined package.json file: { ...
https://stackoverflow.com/questions/53046371/react-webpack-cannot-read-property-tap-of-undefined
reactjs, webpack, django-webpack-loader
1,540,819,154
se_79971870
stackoverflow
FRONTEND_DEVELOPMENT
360 degree Youtube embed controls
360 degree Youtube embed controls I'm trying to show a 360 Youtube video in a react & vite project. I get the video to open up, but whatever I try it just doesn't get the controls in it. Just as an example this hasn't worked (I've set embeds to true): import React from 'react'; // Reusable 360 Video Component const Y...
https://stackoverflow.com/questions/79971870/360-degree-youtube-embed-controls
reactjs, youtube, embed
1,782,847,232
se_79971786
stackoverflow
FRONTEND_DEVELOPMENT
How to implement a global voice navigation system in React using the Web Speech API and Context API?
How to implement a global voice navigation system in React using the Web Speech API and Context API? I'm building a React application with a global voice navigation feature using the Web Speech API. I'm managing speech recognition, speech synthesis, keyboard shortcuts, and page-specific voice commands through a React ...
https://stackoverflow.com/questions/79971786/how-to-implement-a-global-voice-navigation-system-in-react-using-the-web-speech
javascript, reactjs, react-context, webspeech-api
1,782,831,437
se_70882663
stackoverflow
FRONTEND_DEVELOPMENT
Vite Reload Loop
Vite Reload Loop I am trying to finish a migration away from Parcel and into Vite. We use caddy to reverse proxy a custom domain locally through a Docker container. The issue I'm having is that when I load the client in browser it continuously refreshes, the console saying that vite is connecting, then "server connect...
https://stackoverflow.com/questions/70882663/vite-reload-loop
reactjs, docker, vite, caddy
1,643,302,845
se_79971741
stackoverflow
FRONTEND_DEVELOPMENT
Is using CryptoJS AES with a Firebase UID as the encryption key a secure approach?
Is using CryptoJS AES with a Firebase UID as the encryption key a secure approach? import CryptoJS from 'crypto-js'; const GLOBAL_SALT = 'AarthSaathiEncryptSaltSecretKey'; /** * Encrypts a field value client-side using a key derived from the user's UID. * @param {string} value Plaintext value * @param {string} ui...
https://stackoverflow.com/questions/79971741/is-using-cryptojs-aes-with-a-firebase-uid-as-the-encryption-key-a-secure-approac
javascript, reactjs, firebase, encryption
1,782,825,747
se_68660450
stackoverflow
FRONTEND_DEVELOPMENT
How do I get my HTML form date input to only allow specific days of the week to be chosen using JavaScript, React and HTML?
How do I get my HTML form date input to only allow specific days of the week to be chosen using JavaScript, React and HTML? I am trying to get my Forms Date Input to only allow Thursday, Friday, and Saturday to be selected. But I can't seem to find a way to do it. Is there some JavaScript or HTML code I could use to s...
https://stackoverflow.com/questions/68660450/how-do-i-get-my-html-form-date-input-to-only-allow-specific-days-of-the-week-to
javascript, html, reactjs, date, calendar
1,628,135,868
se_79958578
stackoverflow
FRONTEND_DEVELOPMENT
How can I add a label below a QR code and export it to PDF in React?
How can I add a label below a QR code and export it to PDF in React? I am working on a React project where I need to export the QR code along with the custom labels in PDF format. What is the recommended approach to achieve this ?Are there any libraries or best practices for generating QR codes with labels and exporti...
https://stackoverflow.com/questions/79958578/how-can-i-add-a-label-below-a-qr-code-and-export-it-to-pdf-in-react
reactjs, qr-code, react-qr-code
1,781,369,361
se_79970144
stackoverflow
FRONTEND_DEVELOPMENT
this is the best way to write you Authorization context code in your react project
this is the best way to write you Authorization context code in your react project I am building a React authentication context using Firebase Auth. The provider listens to onAuthStateChanged, stores a simplified user object in state, checks my backend /me endpoint, and exposes auth helper functions like login, logout...
https://stackoverflow.com/questions/79970144/this-is-the-best-way-to-write-you-authorization-context-code-in-your-react-proje
reactjs, authorization
1,782,711,831
se_68225050
stackoverflow
FRONTEND_DEVELOPMENT
Next-Auth - Custom OAuth 2.0 Provider Integration
Next-Auth - Custom OAuth 2.0 Provider Integration We have our own OAuth 2.0 implementation and I am using next-auth to connect and get a jwt in my Next.js app. Output: At the moment, I am able to login. However, I get null as token on the client-side. Steps I have implemented: Added the next-auth Provider component a...
https://stackoverflow.com/questions/68225050/next-auth-custom-oauth-2-0-provider-integration
javascript, reactjs, oauth-2.0, next.js, next-auth
1,625,228,189
se_54067078
stackoverflow
FRONTEND_DEVELOPMENT
Module build failed: Error: ENOENT: no such file or directory - React
Module build failed: Error: ENOENT: no such file or directory - React I am trying to implement pagination in my react application. This is the site I am following React Pagination Component. But I am getting the following error while application build. ./node_modules/babel-preset-react-app/node_modules/@babel/run...
https://stackoverflow.com/questions/54067078/module-build-failed-error-enoent-no-such-file-or-directory-react
javascript, reactjs, pagination
1,546,819,376
se_34048037
stackoverflow
FRONTEND_DEVELOPMENT
Handling click events of links rendered within markdown React component
Handling click events of links rendered within markdown React component I'm using React and react-marked to render markdown within a component. The markdown content is user defined and sometime contains links. What would be the best method of intercepting the click events on the markdown links. I could obviously us...
https://stackoverflow.com/questions/34048037/handling-click-events-of-links-rendered-within-markdown-react-component
javascript, jquery, reactjs, markdown
1,449,074,148
se_57827085
stackoverflow
FRONTEND_DEVELOPMENT
How do I dynamically display an icon for each category with React?
How do I dynamically display an icon for each category with React? I am trying to set a different icon for each category I fetch from an API. But the icons I get them from my local pc. This is probably not the best way to do it, do you have any other idea? The props.icon gives me the Object.keys from this API URL: h...
https://stackoverflow.com/questions/57827085/how-do-i-dynamically-display-an-icon-for-each-category-with-react
javascript, reactjs, image, dynamic, switch-statement
1,567,795,040
se_79968722
stackoverflow
FRONTEND_DEVELOPMENT
3D Model doesn&#39;t go down on the Y axis as I scroll down the page
3D Model doesn&#39;t go down on the Y axis as I scroll down the page I'm trying to learn Three.js and GSAP, and so far I read the docs and followed a YouTube video on how to rotate and bring a model down. However, it doesn't really follow what I want it to do and I'm stuck. The objective is to make it rotate and go do...
https://stackoverflow.com/questions/79968722/3d-model-doesnt-go-down-on-the-y-axis-as-i-scroll-down-the-page
reactjs, three.js, gsap
1,782,582,788
se_52680596
stackoverflow
FRONTEND_DEVELOPMENT
Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout
Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout I am testing API for User functionality (signup and login) using jest. Code for testing: const request = require('supertest'); const app = require('../../app'); describe('Test User Functionality', () => { test('User ...
https://stackoverflow.com/questions/52680596/timeout-async-callback-was-not-invoked-within-the-5000ms-timeout-specified-by
reactjs, express, jestjs, supertest
1,538,839,696
se_66922323
stackoverflow
FRONTEND_DEVELOPMENT
Display navbar ontop of react-window
Display navbar ontop of react-window I'm trying to display a navbar on top of react window list. I'm using react-window and react-virtualized-auto-sizer. The problem is that when I add the navbar outside the AutoSizer it creates another scroll bar. sandbox. How could I position the navbar ontop of the list without ano...
https://stackoverflow.com/questions/66922323/display-navbar-ontop-of-react-window
css, reactjs, react-window
1,617,380,814
se_70023513
stackoverflow
FRONTEND_DEVELOPMENT
NextJS SSR in Capacitor
NextJS SSR in Capacitor we use Next.js with server-side rendering (SSR) and we'd like to wrap our app with Capacitor.js so that we can ship it to both Android and iOS devices. Sadly, this only seems to be possible when using static site generation (SSG) and I cannot find anything on how to even attempt to make SSR wor...
https://stackoverflow.com/questions/70023513/nextjs-ssr-in-capacitor
reactjs, react-native, ionic-framework, next.js, capacitor
1,637,253,315
se_69494151
stackoverflow
FRONTEND_DEVELOPMENT
How to send pictures from back-end to the front-end in ReactJS
How to send pictures from back-end to the front-end in ReactJS I am working with ReactJS, and I need to serve some pictures in my front end, I can't do it in the following way <img alt="" src={process.env.PUBLIC_URL + image + ".png" } /> because I will serve more than 2 pictures starting with a specific keyword, so I...
https://stackoverflow.com/questions/69494151/how-to-send-pictures-from-back-end-to-the-front-end-in-reactjs
node.js, reactjs, fs
1,633,687,835
se_48144237
stackoverflow
FRONTEND_DEVELOPMENT
Display React component Source code using &lt;code&gt; tag
Display React component Source code using &lt;code&gt; tag I am creating a react styleguide. I am not using any markdown.I want to display component, description, source code of the component. I can display them using code tag if I keep the entire source code in a variable and display them. (see below) render() { ...
https://stackoverflow.com/questions/48144237/display-react-component-source-code-using-code-tag
reactjs, components
1,515,385,679
se_70140908
stackoverflow
FRONTEND_DEVELOPMENT
Scrollbar on tailwind while using overflow-x-hidden
Scrollbar on tailwind while using overflow-x-hidden I am using Tailwind in a react project, I detected a scrolling error while using the class overflow-x-hidden. This class adds a vertical scrolling bar in the h1 elements of my component. See the attached image: The live code can be found here: https://play.tailwindc...
https://stackoverflow.com/questions/70140908/scrollbar-on-tailwind-while-using-overflow-x-hidden
css, reactjs, tailwind-css
1,638,077,505
se_57872816
stackoverflow
FRONTEND_DEVELOPMENT
How to re-render component after fetch request and state change?
How to re-render component after fetch request and state change? I'm new to react and tying in the back end but after I make the fetch requests, I have to reload the page to see any changes. The database is updated as soon as the functions are called but the component doesn't re-render. I know setState works asynchron...
https://stackoverflow.com/questions/57872816/how-to-re-render-component-after-fetch-request-and-state-change
javascript, node.js, reactjs, mongodb, fetch
1,568,125,206
se_47412169
stackoverflow
FRONTEND_DEVELOPMENT
Jest mock global variable&#39;s method
Jest mock global variable&#39;s method In my application I have a global variable in an external file const Translate = { trans: () => {... some code} } and I use it in my React component const title = Translate.trans('title'); and in my Component.test.js import React from 'react'; import Enzyme, { shallow }...
https://stackoverflow.com/questions/47412169/jest-mock-global-variables-method
javascript, reactjs, testing, jestjs
1,511,264,170
se_66086997
stackoverflow
FRONTEND_DEVELOPMENT
React microfrontend with Module Federation
React microfrontend with Module Federation I consider to create microfrontend with Webpack 5 Module Federation as described on https://indepth.dev/posts/1173/webpack-5-module-federation-a-game-changer-in-javascript-architecture. Has anyone experience with Webpack 5 Module Federation? If yes, could you please share you...
https://stackoverflow.com/questions/66086997/react-microfrontend-with-module-federation
reactjs, webpack
1,612,694,880
se_77060604
stackoverflow
FRONTEND_DEVELOPMENT
Service worker not registering on vite react app
Service worker not registering on vite react app For a while now I have been trying to register service worker for my vite react app but for some odd reason it not registering in production environment, while it does on localhost. Below is my vite configuration: import { defineConfig } from "vite"; import react from "...
https://stackoverflow.com/questions/77060604/service-worker-not-registering-on-vite-react-app
reactjs, vite, service-worker
1,694,097,691
se_72526421
stackoverflow
FRONTEND_DEVELOPMENT
React - download file button
React - download file button I'd like to use a button to download file stored in public folder. I have test.xlsx in public folder, and here is my code <a href={"/test.xlsx"} download target='_blank'> <button> click </button> </a> However, when I go to the website, it says Failed - No file. How can I fix it? Do I ...
https://stackoverflow.com/questions/72526421/react-download-file-button
reactjs
1,654,580,868
se_63763537
stackoverflow
FRONTEND_DEVELOPMENT
Measure Page Load Time Speed in Single Page Applications
Measure Page Load Time Speed in Single Page Applications I researched a lot on how to measure the page load times in a single page application like React, Vue etc but did not get any proper answer. In Websites that are built using Single Page Application frameworks/libraries like vue, react etc load the initial page ...
https://stackoverflow.com/questions/63763537/measure-page-load-time-speed-in-single-page-applications
javascript, reactjs, angular, vue.js, single-page-application
1,599,391,127
se_42802405
stackoverflow
FRONTEND_DEVELOPMENT
How can I render an HTML element object within a string in ReactJS?
How can I render an HTML element object within a string in ReactJS? How can I convert an HTML object containing a span element within a string into something that Reactjs can actually render as HTML? To clarify, here's what I have: let myObject = "apple tree" I wrote a function that wraps the word apple in a span ele...
https://stackoverflow.com/questions/42802405/how-can-i-render-an-html-element-object-within-a-string-in-reactjs
javascript, html, reactjs
1,489,558,823
se_53835816
stackoverflow
FRONTEND_DEVELOPMENT
Decode Jwt token React
Decode Jwt token React I use jsonwebtoken to decode my Token to see if it has expired or not. But, the console.log return null. var token = response.headers.authorization; token = token.replace('Bearer',''); var jwt = require('jsonwebtoken'); var decoded = jwt.decode(token); console.log(decoded); I'm don't und...
https://stackoverflow.com/questions/53835816/decode-jwt-token-react
reactjs, jwt
1,545,145,351
se_78707402
stackoverflow
FRONTEND_DEVELOPMENT
Could a React compiler compile down to library-less JS?
Could a React compiler compile down to library-less JS? I've read a bit about Svelte - if I understand correctly, source code compiles down to native js. This is unlike React where the state management logic is the same for dev / production (i.e. there is a React import in production). But now that there is a React co...
https://stackoverflow.com/questions/78707402/could-a-react-compiler-compile-down-to-library-less-js
reactjs, svelte
1,720,100,000
se_65566732
stackoverflow
FRONTEND_DEVELOPMENT
CORS in Nextjs Application on Vercel
CORS in Nextjs Application on Vercel I am currently working wiht my first bigger NextJS application and I ran into the classic CORS problem. I have a backend, which is hosted on a different server/url, I get my json data from this backend. My frontend written in NextJS is deployed on Vercel. I do know, that I have to ...
https://stackoverflow.com/questions/65566732/cors-in-nextjs-application-on-vercel
javascript, reactjs, cors, fetch, next.js
1,609,779,954
se_79966664
stackoverflow
FRONTEND_DEVELOPMENT
Whatsapp Automation on React + Electron Application
Whatsapp Automation on React + Electron Application I need a quick suggestion from you guys, I am currently working on a react + electron desktop application. In that i need to automate messages from that app to whatsapp. Is there any suggestions. I don't trust AI .....: )
https://stackoverflow.com/questions/79966664/whatsapp-automation-on-react-electron-application
reactjs, electron, whatsapp
1,782,363,955
se_52163475
stackoverflow
FRONTEND_DEVELOPMENT
Styled Components &amp; React: Click event
Styled Components &amp; React: Click event I am trying to create an onClick for a Styled Components Component, but it is not working. It is not logging hello in the console. <Component onClick={this.handleClick} /> The handleClick: handleClick(e) { console.log("hello"); } This is also in the constructor: th...
https://stackoverflow.com/questions/52163475/styled-components-react-click-event
reactjs, styled-components
1,536,054,490
se_74859028
stackoverflow
FRONTEND_DEVELOPMENT
Trying to mock MUI&#39;s useMediaQuery hook behaviour in Enzyme test
Trying to mock MUI&#39;s useMediaQuery hook behaviour in Enzyme test EDIT: I was able to determine that MUI's instructions work correctly when using RTL. This issue is only taking place in Enzyme tests! I'm following MUI's documentation on how to test useMediaQuery, but I am confused as to whether or not the way I am ...
https://stackoverflow.com/questions/74859028/trying-to-mock-muis-usemediaquery-hook-behaviour-in-enzyme-test
reactjs, material-ui, enzyme
1,671,516,020
se_78470556
stackoverflow
FRONTEND_DEVELOPMENT
react-native-element-dropdown container issues
react-native-element-dropdown container issues I have width of my parent view 50% and i have placed my drop down at flex start but when i press the dropdow to open the container it doest not open the container under the dropdown it opens it in the center of the screen horizontally, and show only 2 values for more i ha...
https://stackoverflow.com/questions/78470556/react-native-element-dropdown-container-issues
reactjs, react-native, react-hooks, dropdown
1,715,583,846
se_55201612
stackoverflow
FRONTEND_DEVELOPMENT
How do I close upon button click of a rendered component in react?
How do I close upon button click of a rendered component in react? I'm having trouble figuring out how to close a component that's rendered. I currently have am able to open the modal component on my first page, but then I want to close it upon the click of a button through the component. How would I do that? import ...
https://stackoverflow.com/questions/55201612/how-do-i-close-upon-button-click-of-a-rendered-component-in-react
javascript, reactjs, components, element
1,552,771,326
se_73241252
stackoverflow
FRONTEND_DEVELOPMENT
MUI Autocomplete fetch data from request
MUI Autocomplete fetch data from request I have one annoying problem with autocomplete in MUI 5. I have several autocomplete components that are connected to huge dictionaries. Because of that, I don't insert the entire collection to "option" param in autocomplete, but call API to search in MongoDB when user inputs so...
https://stackoverflow.com/questions/73241252/mui-autocomplete-fetch-data-from-request
reactjs, material-ui, mui-autocomplete
1,659,640,806
se_75766979
stackoverflow
FRONTEND_DEVELOPMENT
Explain the error &quot;WebSocket connection to &#39;ws://localhost:....../chat&#39; failed:&quot;
Explain the error &quot;WebSocket connection to &#39;ws://localhost:....../chat&#39; failed:&quot; enter code hereError: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy b...
https://stackoverflow.com/questions/75766979/explain-the-error-websocket-connection-to-ws-localhost-chat-failed
reactjs, .net, signalr, signalr-hub, asp.net-core-signalr
1,679,051,981
se_74668135
stackoverflow
FRONTEND_DEVELOPMENT
React JS - Error Maximum update depth exceeded
React JS - Error Maximum update depth exceeded I was testing out useSyncExternalStore to replace a store subscription used with useEffect, Basically this is the usage of the hook, const state = BoardState.getInstance(); const boardUIstate = useSyncExternalStore( (observer) => state.subscribe(observer), () => ...
https://stackoverflow.com/questions/74668135/react-js-error-maximum-update-depth-exceeded
reactjs, react-hooks
1,670,081,843
se_79956823
stackoverflow
FRONTEND_DEVELOPMENT
React Native Reanimated SVG Circle Progress initial animation not working, but prop updates animate correctly
React Native Reanimated SVG Circle Progress initial animation not working, but prop updates animate correctly I am a beginner with React Native Reanimated. I have a circular progress component using Reanimated and SVG. The animation works correctly when the progress prop changes after the component is rendered. Howeve...
https://stackoverflow.com/questions/79956823/react-native-reanimated-svg-circle-progress-initial-animation-not-working-but-p
reactjs, react-native, expo, react-native-reanimated, react-native-skia
1,781,224,598
se_79943110
stackoverflow
FRONTEND_DEVELOPMENT
Are the @eslint-react/no-unstable-default-props and @eslint-react/no-unstable-context-value rules still relevant in React 19?
Are the @eslint-react/no-unstable-default-props and @eslint-react/no-unstable-context-value rules still relevant in React 19? I noticed that the ESLint React rules no-unstable-default-props and no-unstable-context-value are disabled by default. They seem to be useful rules regarding avoiding unnecessary re-renders thr...
https://stackoverflow.com/questions/79943110/are-the-eslint-react-no-unstable-default-props-and-eslint-react-no-unstable-co
reactjs, eslint, lint
1,779,130,644
se_49985819
stackoverflow
FRONTEND_DEVELOPMENT
React- createRef() Api - this.child.current is null
React- createRef() Api - this.child.current is null In order to allow my parent component (JsonFetcher) to access values from my child component (Display), I tried using createRef() API that just came of this patch 16.3 Following the "Adding a Ref to a class Component" example in this document, here's what I tried in...
https://stackoverflow.com/questions/49985819/react-createref-api-this-child-current-is-null
reactjs, reference, ref
1,524,500,906
se_79859280
stackoverflow
FRONTEND_DEVELOPMENT
React-three/fiber canvas only displaying when I manually alter the viewport
React-three/fiber canvas only displaying when I manually alter the viewport I've a project that takes a GLB, breaks it down into the two components and then populates a react-three/fiber canvas. It looks great and gets fully populated by the GLB but only if I go in and manually change the viewport first, otherwise the...
https://stackoverflow.com/questions/79859280/react-three-fiber-canvas-only-displaying-when-i-manually-alter-the-viewport
javascript, reactjs, three.js, react-three-fiber
1,767,370,820
se_63151196
stackoverflow
FRONTEND_DEVELOPMENT
Client side routing not working in NextJS
Client side routing not working in NextJS Update: FIXED! I made a silly mistake because I had a [language]/folder and I forgot to provide the language in the href and query params. I have the following pages; pages/_app.js pages/_document.js pages/index.js pages/order.js pages/discover/[categoryId].js Here is the or...
https://stackoverflow.com/questions/63151196/client-side-routing-not-working-in-nextjs
reactjs, next.js
1,596,017,246
se_63184681
stackoverflow
FRONTEND_DEVELOPMENT
React hook useSelector value not changed inside async function
React hook useSelector value not changed inside async function I've been using React Hook with useSelector and useDispatch for a while, mostly it works very well but recently I've experienced some very weird scenario. For example: // parentComponent const MyComponent = (props) => { const hasChanged = useSelector(sta...
https://stackoverflow.com/questions/63184681/react-hook-useselector-value-not-changed-inside-async-function
javascript, reactjs, react-redux, react-hooks, getstate
1,596,160,263
se_79962756
stackoverflow
FRONTEND_DEVELOPMENT
First participant works, second participant breaks media publishing on AWS
First participant works, second participant breaks media publishing on AWS LiveKit works on localhost but fails on AWS Docker deployment with PublishTrackError: publishing rejected as engine not connected within timeout I'm building a video conferencing application using: React 18 Node.js / Express LiveKit Cloud Dock...
https://stackoverflow.com/questions/79962756/first-participant-works-second-participant-breaks-media-publishing-on-aws
reactjs, amazon-web-services, docker, nginx, mern
1,781,800,568
se_73826207
stackoverflow
FRONTEND_DEVELOPMENT
FlatList onViewableItemsChanged keeps firing even if I am on another tab
FlatList onViewableItemsChanged keeps firing even if I am on another tab I have a few tabs (i.e. chat and profile), chat tab has only a FlatList which has a viewport check function, it works fine when I’ve rendered the chat tab. But if I switch to profile tab after rendering chat’s FlatList, the viewport function keep...
https://stackoverflow.com/questions/73826207/flatlist-onviewableitemschanged-keeps-firing-even-if-i-am-on-another-tab
reactjs, react-native, react-hooks, viewport, react-native-flatlist
1,663,928,024
se_78440564
stackoverflow
FRONTEND_DEVELOPMENT
Vercel middleware crash - __dirname is not defined
Vercel middleware crash - __dirname is not defined Has anybody ever experienced this issue while deploying a nextjs app on vercel? The deployment is successful but causes this runtime error ReferenceError: __dirname is not defined at (node_modules/next/dist/compiled/ua-parser-js/ua-parser.js:1:17315) at (node_...
https://stackoverflow.com/questions/78440564/vercel-middleware-crash-dirname-is-not-defined
reactjs, next.js, vercel, edge-runtime, vercel-middleware
1,715,064,125
se_79949811
stackoverflow
FRONTEND_DEVELOPMENT
What is the best strategy for managing permissions and role-based access control (RBAC) in a large React application?
What is the best strategy for managing permissions and role-based access control (RBAC) in a large React application? I am working on a large React application that supports multiple user roles such as Admin, Manager, Editor, and Viewer. Each role has access to different pages, components, actions, and API operations....
https://stackoverflow.com/questions/79949811/what-is-the-best-strategy-for-managing-permissions-and-role-based-access-control
javascript, reactjs, rbac
1,780,334,187
se_79928955
stackoverflow
FRONTEND_DEVELOPMENT
How to have one element always be right above a chosen other element
How to have one element always be right above a chosen other element I'm working on a calendar for a project where, when a chosen event is clicked, a pop-up box is supposed to appear right above the clicked element. I originally tried to do it where it works based on the position of the physical element the user click...
https://stackoverflow.com/questions/79928955/how-to-have-one-element-always-be-right-above-a-chosen-other-element
javascript, css, reactjs, fullcalendar, popover
1,776,705,607
se_76940831
stackoverflow
FRONTEND_DEVELOPMENT
How to prevent edge and node intersection in react-flow?
How to prevent edge and node intersection in react-flow? I need an edge type that does not intersect with a node. I use the source node and target node handles vertically as a business rule. When I connect one node's bottom handle that is below the other node to another node up handle, the edge intersects with both tw...
https://stackoverflow.com/questions/76940831/how-to-prevent-edge-and-node-intersection-in-react-flow
reactjs, typescript, svg, path, react-flow
1,692,556,308
se_78288949
stackoverflow
FRONTEND_DEVELOPMENT
Api call to load blog posts saying blocked by orb
Api call to load blog posts saying blocked by orb I have a blog application in which the home page shows the blog posts of all authors with the images of the blog post and their profile pic...but the images are not being displayed and when I check the network requests it says(failed)net::ERR_BLOCKED_BY_ORB but also I ...
https://stackoverflow.com/questions/78288949/api-call-to-load-blog-posts-saying-blocked-by-orb
javascript, html, css, reactjs, backend
1,712,516,092