nextcloud / nextcloud/cookbook

Load all recipes only on demand when editing a recipe

Open
#858 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Frontend
Dominant language
HTML
Stars
642
Forks
113
Avg merge
21h 31m
Merged PRs (30d)
26

Description

Currently, we are loading all recipes at the beginning of the editing of one recipe (here). As long as no reference is to be inserted/modified, this is just a waste of network power.

This should be delayed until it is really needed (lazy-loading).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/components/RecipeEdit.vue around lines 418-430, where all recipes are loaded when editing begins. Trace the reference insertion and modification flows, then defer recipe loading until one of those flows needs it. Done means editing without references does not load all recipes initially, while reference changes still have the required recipe data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.