LivelyKernel / LivelyKernel/ContextJS

How to avoid layer name repetition?

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement nice-to-have
Dominant language
JavaScript
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Once we have that `layer("LayerName")` "accessor", we would still have to write
`let LayerName = layer("LayerName")` to have a variable called LayerName for use with withLayers. Otherwise you would have to write `withLayers([layer("LayerName")], ...)`, which is both wordy and typo-prone (if you type `withLayers([layer("LayerNaem"], ...)` a new layer would be created).

Contributor guide

No contributing guide indexed for this repository

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 by reading the existing layer("LayerName") accessor and withLayers usage described in the issue. Determine an API that avoids repeating the layer name and prevents typo-prone layer creation; done when the intended usage is clear and the accessor and withLayers behavior are covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.