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

[SQLLab] Fix the usage of Redux DevTools Enhancer #1278

Merged
merged 2 commits into from Oct 11, 2016

Conversation

zalmoxisus
Copy link
Contributor

The issue caused by not having the extension installed could be solved by using

enhancerWithPersistState = compose(
      persistState(),
      window.devToolsExtension && window.devToolsExtension() || noop => noop
    );

However, it was really confusing. So, we're deprecating the enhancer in favour of a more clear API.

I'm happy that Airbnb devs found the extension useful. If you have any other suggestions about it, let me know (since we're both building tools for development).

Fixes #1223, #1228, #1238.

enhancerWithPersistState = compose(
persistState(), window.devToolsExtension && window.devToolsExtension()
);
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this triggers the linter, breaks the build, to fix please add /* eslint-disable no-underscore-dangle */ on the line right above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, fixed.

@mistercrunch
Copy link
Member

Nice thanks for the pro-active fix!

@mistercrunch mistercrunch merged commit 79460ab into apache:master Oct 11, 2016
@dpgaspar dpgaspar mentioned this pull request Feb 19, 2020
12 tasks
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
…che#1278)

* feat(legacy-preset-chart-big-number): add timestamp above number

* add timestamp formatting

* revert to fallback warning when no timestamp

* fix smart date formatting

* fix test

Co-authored-by: Ivan Krsnik <ivan.krsnik@unipart.io>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
…che#1278)

* feat(legacy-preset-chart-big-number): add timestamp above number

* add timestamp formatting

* revert to fallback warning when no timestamp

* fix smart date formatting

* fix test

Co-authored-by: Ivan Krsnik <ivan.krsnik@unipart.io>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
…che#1278)

* feat(legacy-preset-chart-big-number): add timestamp above number

* add timestamp formatting

* revert to fallback warning when no timestamp

* fix smart date formatting

* fix test

Co-authored-by: Ivan Krsnik <ivan.krsnik@unipart.io>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
…che#1278)

* feat(legacy-preset-chart-big-number): add timestamp above number

* add timestamp formatting

* revert to fallback warning when no timestamp

* fix smart date formatting

* fix test

Co-authored-by: Ivan Krsnik <ivan.krsnik@unipart.io>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS error when loading SQL Labs
2 participants