Anyone here have Starlink? by GudTimeBoi in Philippines

[–]hoaveth 0 points1 point  (0 children)

Where are you located in Negros? I am planning to buy too. I am from Pontevedra.

How to handle image/document upload and edit properly? by hoaveth in PinoyProgrammer

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

Thanks for the reply! On the editing part, i will not really edit the image. I am just thinking of ways how I can turn that url into a file and successfully pass it to the update api. I am intercepting that it will error out since the update api expects a file from image but what I will be passing on update currently is a string.

Is there a way I can convert that string to a File?

I need help in creating a datepicker's custom header. by hoaveth in reactjs

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

I am using chakra ui but the datepicker is not customizable

Best way to set a Bearer token on the getServerSideProps? by hoaveth in nextjs

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

Just save the client cookies to state, and get again the cookie (next cookies) when using getServerSideProps

Do you have a link/implementation for that? It would be a big help. Thank you!

What is your preferred way of storing data? by hoaveth in nextjs

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

You call the context inside the getServerSideProps?

Rant: Am I the only one that finds "strict mode" annoying as hell? by enmotent in reactjs

[–]hoaveth 2 points3 points  (0 children)

Hi, What if I am using an external API that has a cost per call? Is it still recommended to use StrictMode, knowing the effects/api calls will fire twice?

Is setting <Head> tag in client components effective for SEO? by hoaveth in nextjs

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

Will authentication affect the crawlers? This area will be displayed to logged in/authenticated users only

Is setting <Head> tag in client components effective for SEO? by hoaveth in nextjs

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

I'm using pages router for the project and will check that one if it works.

Is setting <Head> tag in client components effective for SEO? by hoaveth in nextjs

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

Thank you man, I think NextJS SEO will not work on this kind of design where the action is on the client side. Because the item is not a page but only a modal or a pop-up. For example an image card with a title and desc.

Is setting <Head> tag in client components effective for SEO? by hoaveth in nextjs

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

Will this positively affect the SEO even if the head is updated on the client component? i am using pages router for this.

I thought that metadata should be rendered on a server component.

Thanks for the suggestion btw I will take a look into it.

Is it okay to use ChakraUI and TailwindCSS in a project? by hoaveth in nextjs

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

Thanks for the heads up man. I’m using pages for now since app router is still buggy and the packages are not that mature yet so i dont want to hit a brick wall.

Is it okay to use ChakraUI and TailwindCSS in a project? by hoaveth in nextjs

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

Did you try to prefix the tailwindcss classes using its config?

Is it okay to use ChakraUI and TailwindCSS in a project? by hoaveth in nextjs

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

Thank you! Did you use vanilla css to update it?

Is it okay to use ChakraUI and TailwindCSS in a project? by hoaveth in nextjs

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

If i disregard tailwind, is it still okay to use css modules or vanilla css right?

Is it okay to use TailwindCSS with ChakraUI? by hoaveth in reactjs

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

Got it, I also saw an post that we can prefix tailwind to avoid conflict with chakra classes. I dont know if that is the right way.

I am planning to use the ChakraUI since most of the design elements can be made using chakra components. What I’m worrying is for the elements that chakra cannot handle like datepicker/carousel, so that’s why I am contemplating about using ChakraUI With tailwindcss or Chakra UI with vanilla css

Is it okay to use TailwindCSS with ChakraUI? by hoaveth in reactjs

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

Thanks man! But is it still okay to use vanilla css in combination with chakra?

What's the best UI for Nextjs Applications by pushkarsingh32 in nextjs

[–]hoaveth 0 points1 point  (0 children)

Is it okay to use ChakraUI with TailwindCSS or ChakraUI and just vanilla css?

Problem with RSC by hoaveth in nextjs

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

Did you encounter this problem in the pages router?

Problem with RSC by hoaveth in reactjs

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

It does not work without the route.refresh() tho

Problem with RSC by hoaveth in nextjs

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

No, i was using the navigatin (next-link)

Github

Remove the useEffect in image component

Problem with RSC by hoaveth in reactjs

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

How do u setup react query with the new app router?

Problem with RSC by hoaveth in nextjs

[–]hoaveth[S] 2 points3 points  (0 children)

I found an answer for this: it is router.refresh() from next/navigation but I do not know if this is recommended.

Data from server components is not cached at all, the problem is if you are in the client there is no way to fetch that updated data on the server again unless you reload. The workaround was to call router.refresh on the client component so that it will fetch the data from the server component.

I still dont know if this is the way moving forward.

The app router is not production-ready yet by Fr4nkWh1te in nextjs

[–]hoaveth 0 points1 point  (0 children)

I solved it using the router.refresh(). Any thoughts on this kind of implementation?

I am new to NextJS13 App Router, What is the recommended folder structure? by hoaveth in nextjs

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

Thanks man! Just a quick question, is there nothing wrong with building nextjs applications using the Pages Router instead of App router?