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

fix: redux connect issue related to spec upserting #563

Merged
merged 1 commit into from
Feb 21, 2020

Conversation

nickofthyme
Copy link
Collaborator

Summary

Fix issue with redux state clearing specs after consumer state update.

The redux chart state requires all specs are called every time the Chart component is updated. This was not happening due to the pure option that defaults to false, basically creating a shallow equal or memo react component.

Checklist

@nickofthyme nickofthyme added the bug Something isn't working label Feb 21, 2020
@nickofthyme nickofthyme changed the title fix: redux connect memo issue related to spec upserting fix: redux connect issue related to spec upserting Feb 21, 2020
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@1ed6957). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #563   +/-   ##
=========================================
  Coverage          ?   71.59%           
=========================================
  Files             ?      212           
  Lines             ?     6137           
  Branches          ?     1175           
=========================================
  Hits              ?     4394           
  Misses            ?     1724           
  Partials          ?       19
Impacted Files Coverage Δ
src/state/spec_factory.ts 92.3% <100%> (ø)

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 1ed6957...15d8c6e. Read the comment docs.

@nickofthyme nickofthyme merged commit b5d8489 into elastic:master Feb 21, 2020
nickofthyme added a commit to nickofthyme/elastic-charts that referenced this pull request Feb 21, 2020
nickofthyme added a commit to nickofthyme/elastic-charts that referenced this pull request Feb 21, 2020
nickofthyme added a commit to nickofthyme/elastic-charts that referenced this pull request Feb 21, 2020
markov00 pushed a commit that referenced this pull request Feb 21, 2020
## [17.1.1](v17.1.0...v17.1.1) (2020-02-21)

### Bug Fixes

* redux connect memo issue related to spec upserting ([#563](#563)) ([f3a05f1](f3a05f1))
@nickofthyme nickofthyme deleted the fix/redux-spec-updating branch February 27, 2020 16:46
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
## [17.1.1](elastic/elastic-charts@v17.1.0...v17.1.1) (2020-02-21)

### Bug Fixes

* redux connect memo issue related to spec upserting ([opensearch-project#563](elastic/elastic-charts#563)) ([138b769](elastic/elastic-charts@138b769))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants