-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resizing window triggers maximum update depth exceeded in next js 14.0.2 #1045
Comments
Hi @alexmondaini, how many data points do you have in your chart when this happens? |
Hi @severinlandolt , An array of length 19, each element is an object/interface of size 6. Not too many data points I believe |
I am using next.js 14 app router, I've tried both ways, |
I have noted you labeled bug , but as an issue of tremor raw, does this also apply to tremor components ? Not quite sure on how I can help you further to trace the issue. |
I am trying to build a real time dashboard which my components are rendered from the server every time the user visits /dashboard page. My dashboard
page.tsx
looks like this:And I have a product-chart which uses tremor
Barchart
component, which is a client component. This is myproduct-chart.tsx
file:In this file, fetchCompliantProduct() is an async function which fetches data from my database, and then pass into Barchart client component for rendering. The problem I am facing right now is that whenever I move on my window screen on the browser to diminish or increase the window , I get the following error:
This is my
data.ts
which I fetch the data from db:The text was updated successfully, but these errors were encountered: