Skip to content

Commit 19ae407

Browse files
committed
Fix AppProvider default props
1 parent 34b856e commit 19ae407

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

dash/dash-renderer/src/AppProvider.react.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ import {Provider} from 'react-redux';
55
import Store from './store';
66
import AppContainer from './AppContainer.react';
77

8-
const AppProvider = ({hooks}: any) => {
8+
const AppProvider = ({
9+
hooks = {
10+
layout_pre: null,
11+
layout_post: null,
12+
request_pre: null,
13+
request_post: null,
14+
callback_resolved: null,
15+
request_refresh_jwt: null
16+
}
17+
}: any) => {
918
const [{store}] = useState(() => new Store());
1019
return (
1120
<Provider store={store}>
@@ -25,15 +34,4 @@ AppProvider.propTypes = {
2534
})
2635
};
2736

28-
AppProvider.defaultProps = {
29-
hooks: {
30-
layout_pre: null,
31-
layout_post: null,
32-
request_pre: null,
33-
request_post: null,
34-
callback_resolved: null,
35-
request_refresh_jwt: null
36-
}
37-
};
38-
3937
export default AppProvider;

0 commit comments

Comments
 (0)