Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Module: clone a component, and the route cache default of 200

Open Beginner friendly
#260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
documentation

Research direction

Read the referenced module issues cwa-nuxt-module#157, #408, and #259, along with api-components-bundle#502 and docs#259 for the cycle restriction. Update the documentation for cloning, multi-location deletion, and the route cache default, including the 200-route limit, unbounded setting, and memory tradeoff. Done when the documented behavior matches these changes and the relevant existing docs are updated.

Written by the indexing model from the issue text.

Description

documentation

Module changes for the next @cwa/nuxt release (after 2.0.0-alpha.21) that need documenting:

Clone a component (cwa-nuxt-module#157, #408)

  • What clone is: the same component, with the same IRI, placed in another position. It is never a copy, so an edit in one place, or publishing it, changes it everywhere.
  • The flow:
    1. Select a component and choose Clone in the manager bar's dots menu.
    2. Clone mode shows a "Cloning" bar with Cancel; Escape also cancels. The header's Enable Navigation toggle lets you browse the site while in clone mode.
    3. Clicking a target opens a dialog offering what adding a component offers there: Add before or after, Add to start or end, Add here in an empty group, or Use here in a page-data slot. Options that aren't allowed are disabled, with every reason.
    4. A target in the layout is flagged as appearing on every page that uses it.
  • Several instances: every on-screen instance of a selected component is outlined, and every instance of the component being cloned is highlighted.
  • Delete: a component used in several locations asks Delete from all X locations or Remove from this location only. The Info tab shows "Used in X locations".
  • Cycles: a container can't be placed inside its own subtree. The module disables the option, and the API refuses it (api-components-bundle#502, docs#259).

Route cache default (cwa-nuxt-module#259)

  • cwa.routeCacheLimit now defaults to 200 routes, not 50. Lookups and eviction no longer slow down as the store grows; navigation stays at about 5 ms up to 100k stored resources.
  • Set 0 for unbounded, which is only sensible for small sites.
  • Memory, not speed, is the limit: about 3 KB per stored resource, so roughly 100 MB at ~30k resources. An IndexedDB cold tier is tracked in cwa-nuxt-module#405 for sites that would exceed that.
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
1h 20m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from components-web-app/docs

All issues in components-web-app/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.