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
The latest version of preact added a much appreciated useId hook.
When using preact-ssr-prepass, preact-render-to-string, and useId in a typical SSR setup as outlined in the docs, preact throws this error within the useId function.
TypeError: Cannot read properties of undefined (reading 'length')
Looking into the source, it seems that the mangled _mask property on the vnode (__v ?) is undefined.
functionb(){varn=p(r++,11);return(n.__||(n.__='P'+(function(n){console.log({n,u: u.__v});// n is undefinedfor(vart=0,r=n.length;r>0;)t=((t<<5)-t+n.charCodeAt(--r))|0;returnt;})(u.__v.o)+r),n.__);}
The latest version of preact added a much appreciated
useId
hook.When using
preact-ssr-prepass
,preact-render-to-string
, anduseId
in a typical SSR setup as outlined in the docs,preact
throws this error within theuseId
function.Looking into the source, it seems that the mangled
_mask
property on the vnode (__v
?) is undefined.Is this expected?
Dependencies:
The text was updated successfully, but these errors were encountered: