Should not allow callbacks on ID prop
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
You can attach a callback to Output(some_id, 'id') but this creates a self-consistency problem... anyway whatever you expect it should do is probably not what it actually does right now. We should just disallow this. If you want a component with a new ID, make a new component.
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 by tracing how Output(some_id, 'id') is accepted by the callback registration and validation path, then inspect nearby callback tests. Done means callbacks targeting a component's id property are rejected clearly, while valid outputs continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100