This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Hot reload #73
Merged
Merged
Hot reload #73
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d8e75cc
Add reloader.
T4rk1n 2b90779
Only enable the reloader if hot reload enabled, add interval config.
T4rk1n 86afb93
Rename reloadHash to reloadRequest.
T4rk1n b138169
Add soft reload capability.
T4rk1n c0c88b3
Remove reloading state.
T4rk1n e7ba1cc
Rename reloadHash store to reloadRequests, add intervalId as state.
T4rk1n 1bff05b
Support reloading added component packages.
T4rk1n 5e4c1ca
Support reloading css files only.
T4rk1n 2911610
Fix soft-reload clearInterval.
T4rk1n 3ecb101
Add max_retry, stop the polling, send an alert.
T4rk1n 28e67af
Fix soft reload.
T4rk1n c108d1d
format prettier.
T4rk1n 3eaf61d
Delete .vscode, add to .gitignore
T4rk1n dd88c65
exlint fixes.
T4rk1n 89c8653
Small style fix.
T4rk1n 044838e
Only insert a link tag if not deleted.
T4rk1n 97d884f
Ramda forEach.
T4rk1n 09e7a80
:name_badge: rootReducer -> reloaderReducer
T4rk1n f08ed4b
Update requirements versions
T4rk1n 4f8b4ed
Update version and changelog.
T4rk1n 8ca20a5
Fix changelog typo.
T4rk1n cabf3e3
Update bundles.
T4rk1n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ simple* | |
|
||
*.csv | ||
.idea/ | ||
.vscode | ||
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
import {connect} from 'react-redux' | ||
import {any} from 'ramda' | ||
import React from 'react' | ||
import {connect} from 'react-redux'; | ||
import {any} from 'ramda'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function Loading(props) { | ||
if (any(r => r.status === 'loading', props.requestQueue)) { | ||
return ( | ||
<div className="_dash-loading-callback"/> | ||
); | ||
} | ||
return null; | ||
|
||
return <div className="_dash-loading-callback" />; | ||
} | ||
return null; | ||
} | ||
|
||
Loading.propTypes = { | ||
requestQueue: PropTypes.array.isRequired | ||
requestQueue: PropTypes.array.isRequired, | ||
}; | ||
|
||
export default connect( | ||
state => ({ | ||
requestQueue: state.requestQueue | ||
}) | ||
)(Loading); | ||
export default connect(state => ({ | ||
requestQueue: state.requestQueue, | ||
}))(Loading); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐱