maximis3d / group-project

1 stars 0 forks source link

Make front end server side - Ronnel #17

Open WillnWill opened 1 day ago

WillnWill commented 1 day ago

Switch the project from client side to server side.

RonnelSalgado1 commented 1 day ago

image

Pages not using ReCharts Components are able to be rendered serverside with no issues.

However when ReCharts Components are used "use client" must be used forcing page to be rendered client side.

Currently finding solution to render Recharts components server side

RonnelSalgado1 commented 20 hours ago

image

Created a sepereate file for the rechart component

image

as you can see from the image above the rechart is being rendered client side

image

As you can see the health page no longer has "use client" on the top of the page now but still has re chart imported, this has solved the issue of having the whole page rendered client side when instead now the whole page is rendered server side except the re chart as shown in its file where it includes "use client" on the top