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

Improved memory usage for state management #18

Merged
merged 2 commits into from
Apr 11, 2018

Conversation

JWebCoder
Copy link
Contributor

@JWebCoder JWebCoder commented Feb 21, 2018

I've removed the previousState variable because it was duplicating the memory usage for each Statty component mounted. Also i've changed the state of the component from the global state of broadcast to use only the selected state needed from the selected prop.

@codecov
Copy link

codecov bot commented Feb 21, 2018

Codecov Report

Merging #18 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #18      +/-   ##
=========================================
- Coverage   97.61%   97.5%   -0.12%     
=========================================
  Files           2       2              
  Lines          42      40       -2     
  Branches        8       8              
=========================================
- Hits           41      39       -2     
  Misses          1       1
Impacted Files Coverage Δ
src/state.js 96.96% <100%> (-0.18%) ⬇️

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 9c8ad0e...a2298d2. Read the comment docs.

@vesparny vesparny merged commit 50fd5d7 into vesparny:master Apr 11, 2018
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