Commit 2c6c4810 authored by yann300's avatar yann300

ensure debugging 2 times the same hash

parent f4f0ba20
...@@ -31,6 +31,7 @@ class DebuggerTab extends ViewPlugin { ...@@ -31,6 +31,7 @@ class DebuggerTab extends ViewPlugin {
this.blockchain = blockchain this.blockchain = blockchain
this.debugHash = null this.debugHash = null
this.removeHighlights = false this.removeHighlights = false
this.debugHashRequest = 0
} }
render () { render () {
...@@ -82,8 +83,8 @@ class DebuggerTab extends ViewPlugin { ...@@ -82,8 +83,8 @@ class DebuggerTab extends ViewPlugin {
} }
debug (hash) { debug (hash) {
this.debugHash = '' // so we can trigger a debug using the same hash 2 times in a row. that's needs to be improved
this.debugHash = hash this.debugHash = hash
this.debugHashRequest++// so we can trigger a debug using the same hash 2 times in a row. that's needs to be improved
this.renderComponent() this.renderComponent()
} }
......
...@@ -32,7 +32,7 @@ export const DebuggerUI = ({ debuggerModule }) => { ...@@ -32,7 +32,7 @@ export const DebuggerUI = ({ debuggerModule }) => {
if (debuggerModule.debugHash) { if (debuggerModule.debugHash) {
debug(debuggerModule.debugHash) debug(debuggerModule.debugHash)
} }
}, [debuggerModule.debugHash]) }, [debuggerModule.debugHashRequest])
useEffect(() => { useEffect(() => {
if (debuggerModule.removeHighlights) deleteHighlights() if (debuggerModule.removeHighlights) deleteHighlights()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment