Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: explicitEffect - allow non-array signal parameter #492

Open
mmorgan4x opened this issue Sep 5, 2024 · 1 comment
Open

Suggestion: explicitEffect - allow non-array signal parameter #492

mmorgan4x opened this issue Sep 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mmorgan4x
Copy link

allow explicitEffect to accept a non-array signal parameter

const count = signal(0);
explicitEffect(count, t => {  console.log(`count updated ${t}`) });

instead of

const count = signal(0);
explicitEffect([count], ([t]) => {  console.log(`count updated ${t}`) });
@eneajaho
Copy link
Collaborator

eneajaho commented Sep 5, 2024

@JeanMeche should we add this?
This came up during initial exploration phase btw, but we decided against it.

@eneajaho eneajaho added the enhancement New feature or request label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants