question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

state is missing post finishHooks?

See original GitHub issue

In the example invoking loadImg is resulting in state not being defined.

XKCD should become an async function so that we can await loadImg and wrap the render in an async function?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
HenriBeckcommented, Oct 28, 2018

No, the reason why state is not defined is that you need a default case for your reducer just to return the state.

See: https://codesandbox.io/s/5xpy0nvxyx

0reactions
hemanthcommented, Oct 28, 2018

Was true in both case while debugging, had to update that, but post the spinner stops loads the image loading is not instant, there is this for the onLoad to tigger…

Taking this off the issue, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does React implement hooks so that they rely on call order
After the update finishHooks( ) will be called, where a reference for the first node in the hooks queue will be stored on...
Read more >
State field missing - SAP Community
Hi @Satish,. I'm guessing that you have a feild called state in item type Address and you want to display an editor for...
Read more >
18 Zsh Line Editor
Delete all existing keymaps and reset to the default state. ... Vared calls the usual 'zle-line-init' and 'zle-line-finish' hooks before and after it...
Read more >
1-5 Wall Hooks, Wall Shelf Hooks, Coat Hooks, Hanging ... - Etsy
Made of high quality steel with your chosen finish. We powder coat the hooks with matching colors of our other products, so, for...
Read more >
PROJECT 5—WHITE STURGEON RESEARCH
Five of the eight sturgeon species in the United States are currently ... and releasing the fish results in lower post-hooking mortality.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found