luwes / luwes/sinuous

Resetting the active root only if the currently disposed one is the active one

Open
#189 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.1k
Forks
34
PR merge metrics
No merged PRs in 30d

Description

I think there's a bug here:

https://github.com/luwes/sinuous/blob/ece2c65c19939ec5742f999cfba6c83295c58118/packages/sinuous/observable/src/observable.js#L28

Shouldn't it reset the current root only if the one that got disposed is the active one? Otherwise this would break with nested roots, I think.

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 with packages/sinuous/observable/src/observable.js at line 28 and trace how disposal updates the active root, especially when roots are nested. Check the existing observable tests for disposal coverage and add a regression case if appropriate. Done means disposing a non-active root does not replace the currently active root, while the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.