You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throw a Promise in a function component with the Suspense.
SkipEffects flag value does not return to original value.
As an example, the following code causes an error.
import{equal}from"node:assert";import{options}from"preact";import{createElement,lazy,Suspense}from"preact/compat";importprepassfrom"preact-ssr-prepass";constskipEffects="__s";constComponent=lazy(()=>Promise.resolve({default: ()=>null}));constApp=()=>createElement(Suspense,{fallback: null},createElement(Component,{}));equal(options[skipEffects],undefined);prepass(createElement(App,{})).then(()=>{// This assertion fails because the `skipEffects` option is set to `true` in the `preact-ssr-prepass` module.equal(options[skipEffects],undefined);});
The text was updated successfully, but these errors were encountered:
Throw a Promise in a function component with the Suspense.
SkipEffects flag value does not return to original value.
As an example, the following code causes an error.
The text was updated successfully, but these errors were encountered: