Open WillnWill opened 3 weeks ago
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
Created a sepereate file for the rechart component
as you can see from the image above the rechart is being rendered client side
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
Switch the project from client side to server side.