Skip to content

Conversation

@pe4cey
Copy link
Contributor

@pe4cey pe4cey commented May 11, 2018

  • Adds manual refresh button to re-fetch data
  • Adds auto refresh button to status bar (20 seconds refresh rate)

refresh-sysinfo
Capture notes: Auto refresh interval set to 2 seconds for demo purposes. Background cypher is being executed to increase 'Node ID' value

componentDidUpdate (prevProps, prevState) {
if (prevState.autoRefresh !== this.state.autoRefresh) {
if (this.state.autoRefresh) {
console.log('update')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug code

this.setState({ autoRefresh: autoRefresh })

if (autoRefresh) {
console.log('refresh')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug code

AutoRefreshSpan,
StatusbarWrapper
} from './styled'
} from '../AutoRefresh/styled'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice re-use!

@oskarhane oskarhane merged commit 21288f8 into neo4j:master May 24, 2018
myzero1 pushed a commit to myzero1/neo4j-browser that referenced this pull request May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants