atlassian / react-sweet-state

Shared state management solution for React
https://atlassian.github.io/react-sweet-state/
MIT License
871 stars 55 forks source link

Batch updates by default and support strict mode #80

Closed albertogasparin closed 4 years ago

albertogasparin commented 4 years ago

Given Redux is also batching updates by default, I would consider the API stable enough. It also delivers some small perf improvements (on top of making sweet-state StrictMode compatible).

Closes #77

codecov-io commented 4 years ago

Codecov Report

Merging #80 into master will increase coverage by 0.39%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   98.82%   99.22%   +0.39%     
==========================================
  Files          16       17       +1     
  Lines         256      259       +3     
  Branches       40       38       -2     
==========================================
+ Hits          253      257       +4     
+ Misses          3        2       -1     
Impacted Files Coverage Δ
src/__tests__/mocks.js 100.00% <ø> (ø)
src/components/container.js 100.00% <100.00%> (ø)
src/components/hook.js 100.00% <100.00%> (ø)
src/middlewares/batch.js 100.00% <100.00%> (ø)
src/middlewares/index.js 100.00% <100.00%> (ø)
src/store/create-state.js 100.00% <100.00%> (ø)
src/utils/shallow-equal.js 100.00% <0.00%> (+7.69%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 55880dc...1e96dea. Read the comment docs.