All Questions
22,096
questions
0
votes
1
answer
10
views
react state that is initalized by props does not update when component recieves new props [duplicate]
I am using Next.js with a component that is first skeleton-loaded while the website waits for the data (using tanstack react query):
if (isPending) {
return <MyComponent
name={"...
0
votes
1
answer
14
views
How to make React-Email & Resend work with Firebase Cloud Functions
I have a Nextjs app that utilizes both React-Email, Resend & Firebase Cloud Functions. The directory structure looks like this:
I want to send an email to a user whenever a doc is created in &...
0
votes
0
answers
13
views
next.js not live showing changes on local host server. not hot reloading
Next.js hot reload not working.
I just created a Next project with npx create-next-app@latest
But when I try to make changes to the code, it doesn't hot reload.
directory structure
I tried deleting ...
0
votes
0
answers
14
views
React/NextJS After Fetching Can't Get Map function to show
I'm new to React/NextJS and trying to do a simple fetching and whenever I try to use the map function it does not seem to go inside it. I'm not sure what I'm doing wrong, I'm following some tutorials/...
-1
votes
0
answers
7
views
What are the methods for compressing and/or encoding json for a URL query parameter?
I'm building an application using Next.js 14 and am holding my filtering state within the URL. The request that returns the filtered data is a POST request that takes a payload of a certain structure. ...
-1
votes
0
answers
32
views
How to add a horizontal scroll onclick with a button or arrow?
I am trying to add a simple button to scroll horizontally, not using any libraries or anything just want to keep it simple. As of now I have the cards flowing horizontally in one row and there is the ...
0
votes
1
answer
37
views
How can the input value be enclosed in a variable?
I'm trying to create a component that will have an input and a button. In input, the user enters his nickname. This nickname, that is, the input value, must be stored in a variable. This variable is ...
0
votes
1
answer
30
views
How to fetch data for Client Components on server-side
When I say Client Components -> I mean files that uses use client at the top of it, and Server Components — files that are using use server accordingly
Nobody says, how to fetch data on the server ...
0
votes
1
answer
12
views
Digital time picker in materialUI/nextjs
I want show a digital time picker or duration picker (only m,s). My project theme is in material UI, nextjs so i used materialUI config to implement this but it shows analog clock always. Below is my ...
0
votes
0
answers
13
views
Frontend: PDF preview [blob URL] not working in mobile using iframe
Cannot preview the pdf file selected in the modal:
const onFileSelect = async (
e: React.ChangeEvent<HTMLInputElement>,
index: number,
school_doc_setting_id: number,
) => {
...
1
vote
0
answers
18
views
Unable to achieve accessibility in custom multi select by using react-select library
I have multi select component in which i need to access all options with keyboard keys but i am using custom menu list which consist of select all check box, clear all link ,apply cancel button...i am ...
1
vote
1
answer
24
views
Nextjs 13 App router - Can someone layout a better pattern for conditionally rendering a UI from context?
I'm encountering issues while upgrading from the Next.js 13 Pages Router to the App Router, specifically with conditional rendering inside a React Context. Despite searching, I haven't found similar ...
0
votes
0
answers
11
views
Why I can't navigate to the " event details " page Using "router.push" of next.js?
I am working with next.js 14, and after I did the submission of the event form, I haven't gotten to the event details page, it seems like the router.push doesn't work and I stay on the same page, but ...
1
vote
1
answer
16
views
useQueries loses the ability to query data in parallel because Next.js requires server component to be async
The app is running by Next.js.
I have a useQueries hook:
const userQueries = useQueries({
queries: user.contacts.map((contactId: string) => ({
queryKey: ['contact', ...
0
votes
1
answer
16
views
nextjs import multiple components from index manifest imports everything
BACKGROUND:
I have a project where I have all my UI components in a /components directory.
Right now I export each component in its own file as:
export function Component1() { ... }
and import them ...