-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
Looks like you can get the route prefixes from the config like this: dash-renderer/src/actions/api.js Line 42 in 0dc6f33
anyone know how to actually import the
|
@rmarren1 I think it's in the state dash-renderer/src/actions/api.js Line 36 in 0dc6f33
Or you can get it directly: JSON.parse(document.getElementById('_dash-config').textContent) |
Another pre-release at
|
I am getting a blank screen when I try it with dash_table_experiments: This is the console log:
Can you do a release candidate with the dev build ? |
Yes I'll do that. Pretty sure that your error is because dash-table-experiments is written using in React 15 syntax, I think the only major difference is here you would need to |
That make senses. |
|
Requires this PR: #67 |
Just came across this: https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html This would make for some annoying errors in tests that try to exactly match the rendered HTML to a string. I think this would affect |
…derer into dash-dev-tools
Hey @rmarren1 - I'm going to start on #94 soon, and was planning on creating a branch off of this branch. Should we fix the merge conflicts first, i.e. rebase, or is that too much work? Alternatively, I can branch off of this branch, when I'm done we'll merge my branch into this one, and fix the conflicts later. |
Continued in #100 |
Release Candidate:
pip install dash-renderer==0.14.0rc7
In this PR, we change the Dash app layout from something like:
To the following
The new components serve the following purposes:
GlobalErrorContainer
-- Container for theGlobalErrorOverlay
, this component connects to the Redux store and passes state and functions down to theGlobalErrorOverlay
, and also creates the Werkzueg error pop-up.GlobalErrorOverlay
-- This component renders the main Dash app (_dash-app-content
) along side a conditionally rendered 'error menu'.ComponentErrorBoundary
-- This component wraps each Dash component in theTreeContainer
and implements thecomponentDidCatch
lifecycle method to catch errors in those Dash components. If there is an error in the component, aComponentErrorOverlay
component is displayed. If the component must be disabled (this component has a child in the callback graph that has an error) aComponentDisabledOverlay
component is displayed.This PR also makes an update to the Redux store, adding an
error
state that looks like the following: