Every page load logs a Solid warning about an effect nobody owns

Open Beginner friendly
#52 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
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start at apps/client/theme.js:34, the module-level createEffect(theme, …) added in commit 78722de, and read the root/ownership guidance in AGENTS.md plus any existing module-level effect in the client that already creates a root to copy its pattern. Reproduce with agent-browser open http://localhost:3917 then agent-browser console to see the [NO_OWNER_EFFECT] warning on a fresh store. Done means the effect is created inside an owner/root and the console is quiet on page load with nothing clicked.

Written by the indexing model from the issue text.

Description

scout

Opening the page, with a fresh store and nothing clicked, logs [NO_OWNER_EFFECT] Effects created outside a reactive context will never be disposed. AGENTS.md says module-level effects need a root; the new theme code doesn't have one. Right looks like a quiet console, so the next warning that shows up is a real one.

Evidence:

  • apps/client/theme.js:34 is a bare createEffect(theme, …) at module level, added in 78722de (Cmd-K's Choose theme).
  • The warning's stack, captured with console.warn wrapped via --init-script: createEffect … at http://localhost:3917/theme.js:34:1.
  • agent-browser open http://localhost:3917 then agent-browser console → [warning] [NO_OWNER_EFFECT] …, once per page load.
Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
14m
Merged PRs (30d)
3

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 oskarrough/ade

All issues in oskarrough/ade

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.