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

SignalSetter in prelude #3547

Open
duelafn opened this issue Feb 5, 2025 · 0 comments
Open

SignalSetter in prelude #3547

duelafn opened this issue Feb 5, 2025 · 0 comments

Comments

@duelafn
Copy link

duelafn commented Feb 5, 2025

Is your feature request related to a problem? Please describe.
It seems like SignalSetter wrapper type should be in the prelude just like the Signal wrapper type is.

The query_signal() signal generator requires it therefore, I generally take #[prop(into)] set_foo: SignalSetter<T>, in my components when I need a writer so am annoyed when I have to add the specific import below my use leptos::prelude::*;

Describe the solution you'd like
I'd like SignalSetter added to the prelude.

Describe alternatives you've considered
It seems that (from a quick search) query_signal() is the only signal generator that produces a SignalSetter, so it may be reasonable to leave SignalSetter out of the prelude as an uncommon type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant