maximis3d / group-project

2 stars 0 forks source link

Make front end server side - assigned to Ronnel #17

Open WillnWill opened 3 weeks ago

WillnWill commented 3 weeks ago

Switch the project from client side to server side.

RonnelSalgado1 commented 3 weeks 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 3 weeks 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