setState is not a function in react and nextjs
Home Page
React page leave operation
I have a nextjs application. There is a page that has a list of documents. If someone uploads a document, the list gets one item added. The task is, if someone moves out of the page and if the list still have some items, we need to call one API for each documents. How can it do it in react and nextjs?
State does not update in form context react-hook-form
form.tsx component which is basically a shadcn multi-step form with zod & react-hook-form.
Uncaught TypeError: Cannot read properties of null (reading ‘useState’) while building Next js Module
I have created a Next js Project that I wanna publish as npm module. So I created it configuring tsup. Now I’m trying to use it in another project which I call consumer project that is also in Nextjs. I’m using it locally with help of npm link. Now I’m getting errors of useState in every component whereEver I used it there were few errors of useContext as well. So overall All its not able to identify React. Has someone encountered this kind of situation.
React useState re-run all my functions multiple times
I am learning NextJs & React.
And I found an interesting behaviour of React.
Reusable React hook vs complex javascript response structure
I’m writing a web application using React.
In my code I have plenty different calls to the database.
All of this calls look very similar.
The only difference are table names and parameters and therefore I have a lot of functions that fetch the data.
How to I store the stroke information react-sketch-canvas?
I want to save the information about the stroke (X and Y coordinates) and images of the drawings made but I am unable to do so. The handleExportImage is not being triggered.
NextJS: “window is not defined” error still triggered even though using useEffect
I’m trying to integrate a JS library in my NextJS app, but when loading the page I always get the following error on the server-side: