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.

reload functionality

See original GitHub issue

WDYT about reload functionality? Can look like this:

import loadable from 'loadable-components'

const MyLoadableComponent = loadable(() => import('./MyComponent'), {
  ErrorComponent: ({ error, reload }) => <div><h1>Error</h1><a onClick={reload}>try again</a></div>,
  LoadingComponent: () => <div>Loading...</div>,
})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Feb 4, 2019

@superandrew213 not yet, but I will soon. Stay tuned about new versions.

0reactions
superandrew213commented, Jan 29, 2019

@neoziro did you ever add reload?

Is there a way to do this with the current version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

location.reload() - Web APIs | MDN
The location.reload() method reloads the current URL, like the Refresh button. The reload may be blocked and a SECURITY_ERROR DOMException ...
Read more >
Location reload() Method
The reload() method reloads the current document. The reload() method does the same as the reload button in your browser.
Read more >
JavaScript reload() method
In JavaScript, the reload() method is used to reload a webpage. It is similar to the refresh button of the browser. This method...
Read more >
Reload Option Definition
A reload option is a type of employee compensation in which additional stock options are granted upon the exercise of the previously granted...
Read more >
Refresh the Page in JavaScript – JS Reload Window Tutorial
reload () JavaScript method to reload the current URL. This method functions similarly to the browser's Refresh button. The reload() method is ...
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