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

Added ScopedFamilyRef #26

Merged
merged 7 commits into from
Apr 19, 2024
Merged

Added ScopedFamilyRef #26

merged 7 commits into from
Apr 19, 2024

Conversation

yehorh
Copy link
Contributor

@yehorh yehorh commented Apr 18, 2024

Description

#25 (comment)

@jinyus

I suggest the following interface and implementation for the family feature.
I am still in the process of writing tests and examples, but at the moment I am interested in opinions about the API and the fact that the watchCount will become unavailable for retrieval from ScopedRef since the state has been moved into a separate object.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@jinyus
Copy link
Owner

jinyus commented Apr 18, 2024

Thanks for the PR! This is basically what I had imagined.

@yehorh yehorh marked this pull request as ready for review April 19, 2024 09:42
@yehorh yehorh changed the title Added ScopedFamilyRef (WIP) Added ScopedFamilyRef Apr 19, 2024
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (623e433) to head (3f80332).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #26   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8        10    +2     
  Lines          164       213   +49     
=========================================
+ Hits           164       213   +49     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jinyus
Copy link
Owner

jinyus commented Apr 19, 2024

Looks good!

@jinyus jinyus merged commit de03ce5 into jinyus:main Apr 19, 2024
4 checks passed
@yehorh
Copy link
Contributor Author

yehorh commented Apr 19, 2024

Thanks! ☺️

@yehorh yehorh deleted the scoped-family-ref branch April 19, 2024 18:09
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.

2 participants