Skip to content

Why navigation to /dashboard/customer or /dashboard/invoices will trigger RevenueChart to call fetchRevenue #971

Open
@tangxiaopingdev

Description

@tangxiaopingdev

RevenueChart is in the /dashboard Page, why will trigger RevenueChart to refresh when navigation to other page, such as
/dashboard/customer, /dashboard/invoices, /dashboard/invoices/14/edit.

this will cause many sql query, even if we not needed.

I am newbie to nextjs, hope give me some solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions