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
// This is a mountpoint which loads another mountpoint dynamically.constmount=Symbol();constLoadable=fn=>state=>{if(state[mount]){returnstate[mount];}fn().then(mod=>{// Triggers a reload.state[mount]=mod.default;});returnsheet``;};mount(document,state=>{returnsheet` @media only screen and (max-width: 768px) { .sidebar { mount: ${Loadable(()=>import('./mobile-sidebar.js'))}; } } `;});
Need a concrete use-case but it would be fun.
The text was updated successfully, but these errors were encountered: