We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using MultiProvider with SSR causes:
MultiProvider
Cannot read properties of undefined (reading '0')
Specifically failing on let item = values[i]; line
let item = values[i];
function MultiProvider(props) { const { values } = props; const fn = (i) => { let item = values[i]; if (!item) return props.children; const ctxProps = { get children() { return fn(i + 1); } }; if (Array.isArray(item)) { ctxProps.value = item[1]; item = item[0]; if (typeof item !== "function") item = item.Provider; } return createComponent(item, ctxProps); }; return fn(0); }
todo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Using
MultiProvider
with SSR causes:Cannot read properties of undefined (reading '0')
Specifically failing on
let item = values[i];
lineMinimal Reproduction Link
todo
The text was updated successfully, but these errors were encountered: