ssr-metas #26

Merged
SethTrowbridge merged 5 commits from ssr-metas into master 2023-05-14 07:48:00 -04:00
3 changed files with 5 additions and 2 deletions
Showing only changes of commit 6f86ebae7a - Show all commits

View File

@ -39,6 +39,10 @@ export default ()=>
<Comp/> <Comp/>
</React.Suspense> </React.Suspense>
<Iso.Switch> <Iso.Switch>
<Iso.Case value="/">
<p>thing1</p>
<p>thing2</p>
</Iso.Case>
<Iso.Case value="page"> <Iso.Case value="page">
<Iso.Switch> <Iso.Switch>
<Iso.Case value="about-us"> <Iso.Case value="about-us">

View File

@ -279,7 +279,7 @@ export const Switch =({children}:{children:Children})=>
for(let i=0; i<children.length; i++) for(let i=0; i<children.length; i++)
{ {
const childCase = children[i]; const childCase = children[i];
const childCaseChildren = childCase.props?.__args?.[2] || childCase.props.children; const childCaseChildren = childCase.props?.__args?.slice(2) || childCase.props.children;
const newContextValue = checkChild(childCase); const newContextValue = checkChild(childCase);
if(newContextValue) if(newContextValue)
{ {

View File

@ -396,7 +396,6 @@ else if(App && TwindInst)
Iso.Fetch.ServerTouched = false; Iso.Fetch.ServerTouched = false;
Iso.Meta.Meta = Iso.Meta.ComputeFinal(Iso.Meta.Stack); Iso.Meta.Meta = Iso.Meta.ComputeFinal(Iso.Meta.Stack);
console.log(Iso.Meta.Stack);
const results = Twind.extract(bake, TwindInst); const results = Twind.extract(bake, TwindInst);
type = `text/html`; type = `text/html`;