primate icon indicating copy to clipboard operation
primate copied to clipboard

support web components as frontend framework

Open ralyodio opened this issue 1 year ago • 3 comments

I don't know if its possible to do ssr with web components, but it would be nice to support native web components.

ralyodio avatar Nov 28 '23 13:11 ralyodio

https://lit.dev/docs/ssr/overview/

ralyodio avatar Nov 28 '23 15:11 ralyodio

Initial support added in https://github.com/primatejs/primate/commit/089c9e35c9b5364e2ff5a4f01a8a06d2d3cd02eb.

To do / missing:

  • [ ] Syntax highlighting for .webc in vim / vscode (using the same highlighter as for .html should be enough)
  • [ ] unmounted export for cleanup
  • [ ] Styling
  • [ ] SSR / Hydration
  • [ ] Slotting / layouts
  • [ ] Head Component
  • [ ] Add to support matrix
  • [x] Hot reload

terrablue avatar Dec 21 '23 01:12 terrablue

 window.addEventListener('beforeunload', () => {
   console.log('Clicked browser back button');
 });

ralyodio avatar Jul 03 '24 13:07 ralyodio

no current activity on this, can reopen if becomes relevant again

terrablue avatar Aug 20 '24 22:08 terrablue