nextcloud / nextcloud/cookbook
Load all recipes only on demand when editing a recipe
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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