Skip to content

Can't pass signal as create* function parameter #193

@elsassph

Description

@elsassph

Describe the bug

const foo = createSignal(0);

const bar = createSomething({ foo }); // OK
const bar = createSomething(() => foo()); // OK
const bar = createSomething(foo); // <-- solid/reactivity on `foo`

To Reproduce

Expected behavior

Screenshots

Environment (please complete the following information):

  • OS: [e.g. Mac OS 11, Windows 10]
  • Node version (node --version):
  • eslint-plugin-solid version (npm list eslint-plugin-solid/yarn why eslint-plugin-solid): 0.14.5
  • eslint version (npm list eslint/yarn why eslint): 8.57.1

Additional context

  • I would be willing to contribute a PR to fix this issue

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions