snaps icon indicating copy to clipboard operation
snaps copied to clipboard

Support lazy loading preinstalled Snaps

Open Mrtenz opened this issue 10 months ago • 0 comments

Currently all preinstalled Snaps must be provided to the SnapController through the constructor, meaning all preinstalled Snaps must be fetched at app initialisation time. This may become problematic when there are many preinstalled Snaps, resulting in a long initialisation time.

We should consider allowing lazy loading of preinstalled Snaps. Instead of providing the full JSON, we can provide metadata for how the Snap should be fetched, and lazily fetch when the Snap is actually invoked for the first time (e.g., in SnapController.startSnap).

Mrtenz avatar May 02 '25 08:05 Mrtenz