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.

[Feature] Global waitOn hook

See original GitHub issue

Like this?

FlowRouter.globals.push({
  waitOn() {
    return [import(/*...*/)];
  }
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
dr-dimitrucommented, Jul 21, 2017

Hello everyone,

Thank you for reminding me about this feature. It’s implemented in v.3.2.0, please upgrade.

Feel free to close this issue if v.3.2.0 solved it.

1reaction
valorloffcommented, Jun 16, 2017

sure! It’s a stupid mistake, thanks! per route DynImport works nice

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Reference | React Hooks Testing Library
Simple and complete React hooks testing utilities that encourage good testing practices.
Read more >
waitFor doesn't work if jest fake timers are used #631 - GitHub
Basically the waitFor from @testing-library/react-hooks is using the faked ... What I want to do is test that it invokes the onSuccess function...
Read more >
A Complete Guide to Testing React Hooks - Toptal
This article explores how to test React Hooks and outlines an eight-step testing ... of sleeping for 500ms and then asserting, we use...
Read more >
How to test a function that's called inside a useEffect hook
You should render the component and register the resize event on the window first. Then change the value of window.innerWidth and dispatch a ......
Read more >
useEffect – How to test React Effect Hooks - cultivate
Learn how to test a useEffect hook, how to handle infinite rendering loops, how to deal with a not wrapped in act(..) warning,...
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