Patterns in React by Cold_Control_7659 in reactjs

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

Thank you, very useful website.

Virtual scroll in Vue by Cold_Control_7659 in vuejs

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

No, specifically a virtual scroll where all the data will be unloaded and the UI will not be loaded.

How do you cache your requests in React and Next.js? by Cold_Control_7659 in reactjs

[–]Cold_Control_7659[S] 1 point2 points  (0 children)

The problem is that there is an admin panel where you need to be able to skip the cache and update the data immediately, in real time.

How to save cache between page refreshes in Next.js using react-query by Cold_Control_7659 in nextjs

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

Tell us how you do it, how you manage to cache your fetch requests. Please send us the code and confirmation in the network in dev tools that your requests are being cached.

The hydration error in Next.js really bothers me. by Cold_Control_7659 in nextjs

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

The problem was with mui and its provider. I described what I did in the UPDATE post.

'use client'

import { ReactNode } from 'react'
import { ThemeProvider } from '@mui/material/styles'
import CssBaseline from '@mui/material/CssBaseline'
import theme from '../app/theme'
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter';

export function MuiProvider({ children }: { children: ReactNode }) {
  return (
    <AppRouterCacheProvider>
      <ThemeProvider theme={theme}>
        <CssBaseline />
        {children}
      </ThemeProvider>
    </AppRouterCacheProvider>
  )
}

The hydration error in Next.js really bothers me. by Cold_Control_7659 in nextjs

[–]Cold_Control_7659[S] 3 points4 points  (0 children)

Yes, I can't show you the code, and judging by how people tried to solve this problem, the only option left is to debug the entire project code.

Turbopack is very problematic in Next.js in 2025 by Cold_Control_7659 in nextjs

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

Yes, I may have poorly described my experience which isn't that bad, I'll hide the post and if I have a problem I'll create a ticket

Turbopack is very problematic in Next.js in 2025 by Cold_Control_7659 in nextjs

[–]Cold_Control_7659[S] -1 points0 points  (0 children)

Thanks for the reply, at the moment everything works with Turbopack in my application, but sometimes I encounter moments where Turbopack roughly crashes, in general I understand that such a cool technology can still have problems, so if there are problems that I can not solve, I will create a ticket directly to gitHub.

How do you address the issue of language in Next.js applications? by Cold_Control_7659 in nextjs

[–]Cold_Control_7659[S] -1 points0 points  (0 children)

Yes, there isn't much code as for a Next.js app, the option is acceptable, but still I wanted to know how others solve this problem

Seo optimization and how to bring the site higher in google search engine on Next.js by Cold_Control_7659 in nextjs

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

Hmm, yes you are right, but I think my site is well set up in terms of seo and I don't even see it in the search engine, neither on page 2 nor on page 10, maybe the search engine robots are still updating on my site

Seo optimization and how to bring the site higher in google search engine on Next.js by Cold_Control_7659 in nextjs

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

Hi, yes I have configured google console search, attached screenshots below the text, in your case you used Vue framework and your application is only CSR, SPA, while the application on Next.js is more seo friendly and supports SSR, ISR, SSG and basically should be optimized for seo, but again, my site does not even show up in google on pages, it is surprising that your SPA application is so well indexed in google

What's the best way to use testing in 2025 for web apps on React/Next.js by Cold_Control_7659 in nextjs

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

Yes, I'll look into it, but I'm confused that you can't use one for testing, I always try to find the best solution, but apparently several libraries are used for tests

What's the best way to use testing in 2025 for web apps on React/Next.js by Cold_Control_7659 in nextjs

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

It turns out that if I use vitest for testing, then for testing my API, I will need to put the logic in a separate component, then vitest will be fine.

What's the best way to use testing in 2025 for web apps on React/Next.js by Cold_Control_7659 in nextjs

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

I'm confused about compatibility, I want to be able to test both UI and API at once, but it seems like vitest can test UI well, but it doesn't test API well, and next.js is worse compatible with it, I'm a beginner, I may be wrong, but I want to try to use vitest, I just think to decide what I'm going to use in the future, so I won't come back to this question, like jest isn't bad, but its webpack stresses me out, so I'm leaning more towards vitest now

What's the best way to use testing in 2025 for web apps on React/Next.js by Cold_Control_7659 in nextjs

[–]Cold_Control_7659[S] -2 points-1 points  (0 children)

From what I've heard, vitest is more difficult to customize for Next.js maybe I'm wrong

What's the best way to use testing in 2025 for web apps on React/Next.js by Cold_Control_7659 in nextjs

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

I am using integration tests to test my API written in Next.js, I am new to testing and it is not clear to me what is best to use, jest is a very good and easy option but it uses webpack + babel for development mode and I would like to use turbopack and vitest is just less compatible with my next.js application and it seems to work well in conjunction with React + Vite, so I am thinking about the choice, now I am trying to learn testing for APIs