All Questions
15 questions
1
vote
1
answer
33
views
Chrome Use GPU While downloading ZIP files
I have a web application. Which is used to send files And there is a functionality that download all files in the ZIP formate.
The Problem is when i download any zip file my web browser use GPU.
is it ...
0
votes
0
answers
626
views
How to open multiple new tabs with window.open()?
In my Next.js app I would like to open a URL in a new tab programmatically after an HTTP API call is successful.
The important code in my project is the following:
const handleButtonClick = async () =&...
0
votes
1
answer
728
views
In despair, how to route a React app with Next.js
I am new to Next.js. I have my index.js in the Pages folder and 3 other files in a component folder under Pages. In that folder, I have a Signup.js, Signin.js and a Lostpassword.js. What I am trying ...
1
vote
2
answers
650
views
classname not showing on nextjs
So I was working on Login page using next.js as framework.
I did some simple designs using react for some texts but it is not showing on browser. It may be that it is not imported.
I don't see any ...
0
votes
1
answer
2k
views
Is there a way to check if a message event listener already exists?
Is there a way to check if a message event listener already exists?
I want to do something like:
if(noMessageEventListenerExists) {
globalThis.addEventListener('message', async function (data) {})
}
...
0
votes
2
answers
4k
views
Next.js Router Dynamic URLs and the back button
I am using the Router from next/router in order to have a dynamic URL and load different content on the page:
Router.push('/contract', `/contract/${id}`);
The issue is the back button doesn't ...
3
votes
2
answers
2k
views
Can I see the code of .js files under api folder of NextJS with browsers?
I was wondering if I can see the code of ".js files" under "api folder" of NextJS with browsers.
I read the post Next.js API is back-end? then, one of the answers says:
The back-...
2
votes
1
answer
5k
views
I'm getting this error while trying to deploy a nextjs app on vercel
Why you should I do this regularly as instructed in the provided link.
Info - Creating an optimized production build...
Attention: Next.js now collects completely anonymous telemetry regarding usage.
...
6
votes
2
answers
4k
views
Correctly handling the BFCache in react
I'm showing a loading screen (state) before redirecting to an external url (payment provider), since they tend to load for a while.
If the user chooses not to complete the payment and goes history....
1
vote
0
answers
171
views
Why I am getting Invalid escape error only in vivo browser?
This vivo browser has made my life difficult as a developer. All my styling is messed up in this browser only. Recenlty, in my nextjs Laravel website's shop page the product feed is not rendering even ...
0
votes
1
answer
1k
views
Hide/remove Next.js runtimeConfig in network calls -> document -> response
I am using .yml files in my next.js because of docker and using these .yml configurations in next.js runtimeConfig. These configs can be seen in browser network tab as these are attached with document ...
0
votes
1
answer
4k
views
Nextjs scroll to top button, cannot get scroll position
trying to implement get to top button but it doesn't seem to be working as intented. I think I got the right code and values but my setup isn't correct. I have the following structure, inside my index....
0
votes
0
answers
234
views
Change browser tab based on state variable?
My website is logging a user out after a period of inactivity for security reasons. Right now I have a pop up that shows up after a certain amount of time, but I'd like to modify the tab in some way ...
0
votes
1
answer
412
views
Go back to last page on another tab JS
I have a back button on a nextJS repo, that when clicked, I can call handleClick
import { useRouter } from "next/router";
...
const router = useRouter();
const handleClick = e => {
...
1
vote
1
answer
3k
views
Dynamic route segment in nextJS static js build
is it possible to use dynamic routing path with nextJS, in a static build context?
Assuming my build is a set of html, js, css assets which could be hosted on any web server (Apache, Nginx, S3, ...