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/support initializer #25

Merged
merged 4 commits into from
Jun 13, 2024
Merged

Feat/support initializer #25

merged 4 commits into from
Jun 13, 2024

Conversation

mayank1513
Copy link
Member

Support initializer function. Now you can initialize the RGStore by supplying a function in place of constant.

Now you can use

const [state, setState] = useRGS<number>("counter", () => 1);

@mayank1513 mayank1513 self-assigned this Jun 13, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (285ab35) to head (ccccfe8).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #25   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          289       297    +8     
  Branches        51        53    +2     
=========================================
+ Hits           289       297    +8     
Flag Coverage Δ
r18gs 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.

Copy link

deepsource-io bot commented Jun 13, 2024

Here's the code health analysis summary for commits 285ab35..ccccfe8. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@mayank1513 mayank1513 merged commit 73f1961 into main Jun 13, 2024
8 checks passed
@mayank1513 mayank1513 deleted the feat/support-initializer branch June 13, 2024 02:04
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.

None yet

1 participant