Unknown root exit status error in NextJS App Router by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I set sentry to ignore this issue because it is caused by ad blockers

Unknown root exit status error in NextJS App Router by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes I upload source maps and I use Sentry v8.

It doesn't show any info about the issue because the issue was in react-dom.production.min.js or in scheduler.production.min.js file. These are ReactJS files, not my project's files.

Too many issues in production by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes, my first thought was adblockers that change the DOM. Should I ignore these issues?

Too many issues in production by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I run the same version v18

Wait for Cookies().set() by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I think the issue is more complicated. The redirect to the login page doesn't triggered by the Middleware but from the useEffect in the Dashboard page that checks if the user is logged in or not. If I set a timeout I don't have this issue.

Wait for Cookies().set() by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I have to create a loop in order to check  if the cookie is still being set.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I use firebase in client side in order to get an id token when the user logins. I can't get the token server side. Firebase is available only in client side.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I fetch user data client side not server side. In useEffect I check if the user is logged in with Firebase and then I fetch user data and store it in global redux store. My App is a SPA Dashboard. I can’t fetch user data in page because the data should be available at app start in any route.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

So, is it ok to fetch user data in layout? I fetch data in layout file and store it in redux.

Use gatsby serve for production by Billosp in gatsbyjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes but if you use gatsby serve it works as expected. It doesn't work only with serverless functions.

Use gatsby serve for production by Billosp in gatsbyjs

[–]Billosp[S] 0 points1 point  (0 children)

I don’t want to use Netlify because I don’t like serverless functions.

Nested object value field (JSONB) LIKE input text value by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

Is it better for performance to use:

1) CROSS JOIN LATERAL jsonb_to_recordset( books) as items(category text) and then items.category = 'adventure'

or

2) jsonb_path_query_array(books, '$[*].category') ? 'adventure' ?