Closed aralroca closed 2 weeks ago
``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-adapter-vercel@615 ```
``` bun add https://pkg.pr.new/brisa-build/brisa@615 ```
``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-tailwindcss@615 ```
``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-pandacss@615 ```
``` bun add https://pkg.pr.new/brisa-build/brisa/create-brisa@615 ```
``` bun add https://pkg.pr.new/brisa-build/brisa/www@615 ```
commit: 5fdf97d
Fixes https://github.com/brisa-build/brisa/issues/614
The
self
property has some cases that work during the Server-Side Rendering (SSR):self.attachInternals()
- You can use it at the top level that during the SSR ignores the method.self.shadowRoot.adoptedStyleSheets
- You can use it to clean global styles in web components and it works during the SSR.self.setAttribute()
- You can modify attributes of the web component during the SSR, for example to force atabindex
of an element without having to manually set it when consuming the web component.self.getAttribute()
- You can get attributes of the web component during the SSR. Brisa reactivity does not work here, but you can use it to get attribute values passed to the web component.self.addEventListener
- During the SSR, the execution will be ignored, but you can use it to register events at the top level of the web component where the subscription will be made on the client.self.removeEventListener
: During the SSR, the execution will be ignored, but you can use it to clean events at the top level of the web component where the cleanup will be done on the client.