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.

Differences in Preact Suspense and React Suspense

See original GitHub issue

Reproduction

React Suspense Demo

Preact Suspense Demo

Steps to reproduce

Expected Behavior

Same as React, first show Loading Profile..., then show Loading posts... after profile is loaded

Actual Behavior

Showing Loading Profile... and Loading posts... at the same time

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
JoviDeCroockcommented, Jan 6, 2021

I can confirm this is fixed in our HEAD https://codesandbox.io/s/wizardly-thunder-p1qjv?file=/package.json thank you @tanhauhau

0reactions
tanhauhaucommented, Jan 6, 2021

i believe this will be fixed by https://github.com/preactjs/preact/pull/2910

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switching to Preact (from React)
The main idea behind Suspense is to allow sections of your UI to display some sort of placeholder content while components further down...
Read more >
Suspense for Data Fetching (Experimental) - React
Suspense is not a data fetching library. It's a mechanism for data fetching libraries to communicate to React that the data a component...
Read more >
Don't Optimize Your React App, Use Preact Instead | by Nilanth
Preact also gives some useful warning reg bundle size increase during the build as below. Suspense and Lazy. Some limitations I faced when ......
Read more >
All You Need To Know About React Suspense - CopyCat Blog
The suspense component handles the loading state of the App or any component and will render the fallback UI while loading is true....
Read more >
Issue Encountered Using Suspense and UNSAFE ... - YouTube
Issue Encountered Using Suspense and UNSAFE * Methods with Preact. 70 views 2 years ago. React Knowledgeable. React Knowledgeable.
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