vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
927 stars 57 forks source link

Document The Vaadin Way for working with service workers #2792

Open OlliTietavainenVaadin opened 1 month ago

OlliTietavainenVaadin commented 1 month ago

Service workers are useful for cases where extra caching and progressive improvement are needed, such as offline and poor network connectivity situations. Right now, there's no clear way on how service workers should interact with Hilla applications and Hilla endpoints. The Vaadin Way could document opinionated best practices for working here.

Some ideas for topics:

peholmst commented 1 month ago

Is it technically possible to do all this right now, or are there any limitations in Hilla that must be addressed first?

OlliTietavainenVaadin commented 1 month ago

Is it technically possible to do all this right now, or are there any limitations in Hilla that must be addressed first?

Technically yes, but it requires hacky workarounds right now. Related issues: https://github.com/vaadin/hilla/issues/2788 https://github.com/vaadin/hilla/issues/2789 https://github.com/vaadin/hilla/issues/2790 https://github.com/vaadin/hilla/issues/2791