Skip to content

Conversation

@xuchaobei
Copy link
Contributor

Reduck allows for dynamic mounting of models (reducers). However, when mounting a new model, any slices of initial state for models that have not yet been mounted will be ignored by Redux. To address this issue, we have created a store enhancer to support this scenario.

@xuchaobei xuchaobei changed the title fix: initial state fix: initial state missing May 11, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 93.33% and project coverage change: +0.14 🎉

Comparison is base (071dbe3) 83.66% compared to head (f7c135a) 83.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
+ Coverage   83.66%   83.80%   +0.14%     
==========================================
  Files          32       32              
  Lines         967      982      +15     
  Branches      213      217       +4     
==========================================
+ Hits          809      823      +14     
- Misses        157      158       +1     
  Partials        1        1              
Impacted Files Coverage Δ
packages/store/src/store/createStore.ts 97.05% <93.33%> (-2.95%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@xuchaobei xuchaobei merged commit 8b81fc9 into main May 22, 2023
@xuchaobei xuchaobei deleted the fix/initial-state branch May 22, 2023 08:24
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.

3 participants