-
Notifications
You must be signed in to change notification settings - Fork 16.6k
build: use manifest hooks for dev server proxy and fix hot reload for charts #9333
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
Changes from all commits
40fd252
7b867e9
40c43cd
f6cf617
74c3b02
058fc12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,6 +74,7 @@ const defaultProps = { | |
| setControlValue() {}, | ||
| triggerRender: false, | ||
| dashboardId: null, | ||
| chartStackTrace: null, | ||
|
||
| }; | ||
|
|
||
| class Chart extends React.PureComponent { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,25 @@ | |
| */ | ||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
| import thunk from 'redux-thunk'; | ||
| import { createStore, applyMiddleware, compose } from 'redux'; | ||
| import { initFeatureFlags } from 'src/featureFlags'; | ||
| import { initEnhancer } from '../reduxUtils'; | ||
| import getInitialState from './reducers/getInitialState'; | ||
| import rootReducer from './reducers/index'; | ||
| import logger from '../middleware/loggerMiddleware'; | ||
|
|
||
| import App from './App'; | ||
|
|
||
| ReactDOM.render(<App />, document.getElementById('app')); | ||
| const appContainer = document.getElementById('app'); | ||
| const bootstrapData = JSON.parse(appContainer.getAttribute('data-bootstrap')); | ||
| initFeatureFlags(bootstrapData.common.feature_flags); | ||
| const initState = getInitialState(bootstrapData); | ||
|
|
||
| const store = createStore( | ||
| rootReducer, | ||
| initState, | ||
| compose(applyMiddleware(thunk, logger), initEnhancer(false)), | ||
| ); | ||
|
|
||
| ReactDOM.render(<App store={store} />, document.getElementById('app')); | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.