Skip to content

Commit

Permalink
Callback chain refactoring and performance improvements (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet authored Jun 15, 2020
1 parent 14ae110 commit 8212782
Show file tree
Hide file tree
Showing 52 changed files with 3,290 additions and 1,321 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
lint-unit-27:
<<: *lint-unit
docker:
- image: circleci/python:2.7-stretch-node-browsers
- image: circleci/python:2.7.18-stretch-node-browsers
environment:
PYLINTRC: .pylintrc
PYVERSION: python27
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
build-core-27:
<<: *build-core
docker:
- image: circleci/python:2.7-stretch-node-browsers
- image: circleci/python:2.7.18-stretch-node-browsers
environment:
PYVERSION: python27

Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
build-misc-27:
<<: *build-misc
docker:
- image: circleci/python:2.7-stretch-node-browsers
- image: circleci/python:2.7.18-stretch-node-browsers
environment:
PYVERSION: python27

Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
test-27:
<<: *test
docker:
- image: circleci/python:2.7-stretch-node-browsers
- image: circleci/python:2.7.18-stretch-node-browsers
environment:
PERCY_ENABLE: 0
PYVERSION: python27
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- [#1237](https://github.com/plotly/dash/pull/1237) Closes [#920](https://github.com/plotly/dash/issues/920): Converts hot reload fetch failures into a server status indicator showing whether the latest fetch succeeded or failed. Callback fetch failures still appear as errors but have a clearer message.
- [#1254](https://github.com/plotly/dash/pull/1254) Modifies the callback chain implementation and improves performance for apps with a lot of components

### Fixed
- [#1255](https://github.com/plotly/dash/pull/1255) Hard hot reload targets only the current window, not the top - so if your app is in an iframe you will only reload the app
Expand Down
9 changes: 9 additions & 0 deletions dash-renderer/@Types/modules.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module 'cookie' {
const value: {
parse: (cookie: string) => {
_csrf_token: string
}
};

export default value;
}
5 changes: 5 additions & 0 deletions dash-renderer/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
module.exports = {
presets: [
'@babel/preset-typescript',
'@babel/preset-env',
'@babel/preset-react'
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
env: {
test: {
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-modules-commonjs'
]
}
Expand Down
2 changes: 1 addition & 1 deletion dash-renderer/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = {
// notifyMode: "always",

// A preset that is used as a base for Jest's configuration
// preset: null,
preset: "ts-jest/presets/js-with-babel",

// Run tests from one or more projects
// projects: null,
Expand Down
Loading

0 comments on commit 8212782

Please sign in to comment.