caching
Unanswered
Purple Sandpiper posted this in #help-forum
Purple SandpiperOP
i have two routes in the same lvl
/profile
/market-monitor
and market-monitor has the layout with a profile button
market-monitor use powerbi embedded and when i navigate between profile and market-monitor re-render everything again and powerbi embedded is so slow.
i need like caching the market-monitor once i load everything.
how do i achieve this behavior?
/profile
/market-monitor
and market-monitor has the layout with a profile button
market-monitor use powerbi embedded and when i navigate between profile and market-monitor re-render everything again and powerbi embedded is so slow.
i need like caching the market-monitor once i load everything.
how do i achieve this behavior?
4 Replies
@Purple Sandpiper i have two routes in the same lvl
/profile
/market-monitor
and market-monitor has the layout with a profile button
market-monitor use powerbi embedded and when i navigate between profile and market-monitor re-render everything again and powerbi embedded is so slow.
i need like caching the market-monitor once i load everything.
how do i achieve this behavior?
you can either cache the whole page by adding:
Or if there are parts of the page already dynamic (and shout stay dynamic), you can cache specific fetch function
export const dynamic = 'force-static'Or if there are parts of the page already dynamic (and shout stay dynamic), you can cache specific fetch function
Asian black bear
To ensure you get the best possible assistance, could you please change your thread title to be more descriptive? Specific titles attract the attention of users who can help and make it easier for others to find similar solutions in the future.
@Purple Sandpiper solved?
Purple SandpiperOP
yes, but not that way. I used a modal instead a page.