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

Request for Non-Generic ReactiveCommand in R3 Library #255

Open
southernwind opened this issue Sep 1, 2024 · 1 comment
Open

Request for Non-Generic ReactiveCommand in R3 Library #255

southernwind opened this issue Sep 1, 2024 · 1 comment

Comments

@southernwind
Copy link

I am currently using the R3 library and have noticed that only generic versions of ReactiveCommand are available (ReactiveCommand<T>). It would be very helpful to have a non-generic version of ReactiveCommand as well.

Current Situation:
• Only ReactiveCommand<T> is available.
• Every time I need to use a command without a specific type, I have to write ReactiveCommand<Unit>, which is inconvenient.

Requested Feature:
• Introduce a non-generic ReactiveCommand in addition to the existing ReactiveCommand<T>.
• Allow the following syntax: public ReactiveCommand Command { get; }.

Benefits:
• Simplifies the code when no command parameter is needed.

It would be greatly appreciated if the library could be updated to include this feature. Thank you!

@neuecc
Copy link
Member

neuecc commented Sep 5, 2024

good suggestion, I'll implement it.

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

2 participants