Skip to content

Commit 8212782

Browse files
Callback chain refactoring and performance improvements (#1254)
1 parent 14ae110 commit 8212782

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3290
-1321
lines changed

Diff for: .circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
lint-unit-27:
7373
<<: *lint-unit
7474
docker:
75-
- image: circleci/python:2.7-stretch-node-browsers
75+
- image: circleci/python:2.7.18-stretch-node-browsers
7676
environment:
7777
PYLINTRC: .pylintrc
7878
PYVERSION: python27
@@ -122,7 +122,7 @@ jobs:
122122
build-core-27:
123123
<<: *build-core
124124
docker:
125-
- image: circleci/python:2.7-stretch-node-browsers
125+
- image: circleci/python:2.7.18-stretch-node-browsers
126126
environment:
127127
PYVERSION: python27
128128

@@ -172,7 +172,7 @@ jobs:
172172
build-misc-27:
173173
<<: *build-misc
174174
docker:
175-
- image: circleci/python:2.7-stretch-node-browsers
175+
- image: circleci/python:2.7.18-stretch-node-browsers
176176
environment:
177177
PYVERSION: python27
178178

@@ -372,7 +372,7 @@ jobs:
372372
test-27:
373373
<<: *test
374374
docker:
375-
- image: circleci/python:2.7-stretch-node-browsers
375+
- image: circleci/python:2.7.18-stretch-node-browsers
376376
environment:
377377
PERCY_ENABLE: 0
378378
PYVERSION: python27

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111
- [#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.
12+
- [#1254](https://github.com/plotly/dash/pull/1254) Modifies the callback chain implementation and improves performance for apps with a lot of components
1213

1314
### Fixed
1415
- [#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

Diff for: dash-renderer/@Types/modules.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
declare module 'cookie' {
2+
const value: {
3+
parse: (cookie: string) => {
4+
_csrf_token: string
5+
}
6+
};
7+
8+
export default value;
9+
}

Diff for: dash-renderer/babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
module.exports = {
22
presets: [
3+
'@babel/preset-typescript',
34
'@babel/preset-env',
45
'@babel/preset-react'
56
],
7+
plugins: [
8+
'@babel/plugin-proposal-class-properties',
9+
],
610
env: {
711
test: {
812
plugins: [
13+
'@babel/plugin-proposal-class-properties',
914
'@babel/plugin-transform-modules-commonjs'
1015
]
1116
}

Diff for: dash-renderer/jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = {
8585
// notifyMode: "always",
8686

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

9090
// Run tests from one or more projects
9191
// projects: null,

0 commit comments

Comments
 (0)