modular-synthesizer / frontend

The frontend for the Synple application
https://synple.app/
0 stars 0 forks source link

Avoid re-rendering the tools list each and every time it is opened #99

Open vincentcourtois opened 4 months ago

vincentcourtois commented 4 months ago

Solution 1 : use the keepAlive component

Source : https://vuejs.org/guide/built-ins/keep-alive

This way the tools list will not be re-rendered each and every time we show it, but only once.

Solution 2 : Implement memoization in the dataFetcher component

Source : https://github.com/modular-synthesizer/frontend/blob/main/components/data/Fetcher.vue

We could have another prop passed to the component, being a boolean, default to false, that implements memoization when needed.