mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

Consider updating `renderToString` to `renderToPipeableStream` #2167

Open bobsilverberg opened 2 years ago

bobsilverberg commented 2 years ago

React 18 has near-complete support for Suspense on the server (for SSR), but in order to take advantage of this we'd need to migrate from using renderToString to using renderToPipeableStream. This is discussed here and here.

It's not an entirely straightforward replacement, and, considering that we do not use Suspense at all currently, it probably isn't worth making this change now.

Filing this issue for future us who might want to look into making use of Suspense.

┆Issue is synchronized with this Jira Task

KevinMind commented 5 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDFRNT-89