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

Add 'with' and 'with_mut' to 'use_shared_state' #1353

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

DanielAlbl
Copy link
Contributor

I was wanting to use the with and with_mut functions in use_shared_state in the same way you can with use_ref. Is it OK to add these?

Copy link
Member

@ealmloff ealmloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. It is nice to get the APIs more similar between different hooks

@ealmloff ealmloff merged commit 555f4d5 into DioxusLabs:master Aug 15, 2023
10 checks passed
@ealmloff ealmloff added enhancement New feature or request hooks Changes to built-in hook package labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hooks Changes to built-in hook package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants