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

feat: add write function to State #45

Merged
merged 1 commit into from
Dec 20, 2024
Merged

feat: add write function to State #45

merged 1 commit into from
Dec 20, 2024

Conversation

ccbrown
Copy link
Owner

@ccbrown ccbrown commented Dec 20, 2024

What It Does

Allows you to modify State by calling .write() to get a mutable reference. E.g. my_map.write().insert(foo, bar).

Related Issues

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 86.84211% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.17%. Comparing base (e4fe60b) to head (4594098).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/iocraft/src/hooks/use_state.rs 86.84% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
+ Coverage   91.11%   91.17%   +0.05%     
==========================================
  Files          23       23              
  Lines        3444     3455      +11     
  Branches     3444     3455      +11     
==========================================
+ Hits         3138     3150      +12     
+ Misses        238      237       -1     
  Partials       68       68              
Files with missing lines Coverage Δ
packages/iocraft/src/hooks/use_state.rs 91.72% <86.84%> (+1.42%) ⬆️

Impacted file tree graph

@ccbrown ccbrown merged commit b59213b into main Dec 20, 2024
5 checks passed
@ccbrown ccbrown deleted the state-write branch December 20, 2024 05:49
@ccbrown ccbrown mentioned this pull request Dec 20, 2024
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

Successfully merging this pull request may close these issues.

1 participant