18.0.1 - Code splitting revisited
As mentioned in 18.0.0 the release broke the integration with the Experience Manager preview. We discovered that there were async behavior oddities in the logic code that were exposed now that we were using dynamic loading of the preview code chunks.
As a result the initialize
function now always returns a Promise<Page>
instead of Page | Promise<Page>
. This breaking change means that whomever uses this initialize
function needs to take into account that the synchronous usage is no longer valid.
BREAKING CHANGES:
The API for some functions has changed:
initialize
now returns Promise<Page>
instead of Page | Promise<Page>
ADDITIONAL NOTES:
It was brought to our attention that when using React SSR, but not Next.js, async rendering is not possible. We are investigating this and are looking to provide a guide on how to use the prepareHTML method in combination with pure React SSR. If you are using pure react SSR do let us know and any suggestions are always welcome.