-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Tabs example to the documentation #9
Comments
I haven’t found a big need for server-powered tabs yet. They’re fairly simple to build client-side with Alpine already. I’ll reopen this if I get more requests for tabs in the future. |
I'm new to hateoas. What's the best way to organize tabs using your plugin? Well, actually, in some situations you really need to get new content every time. But for example, I'm making a site for chatting with llm where there is a list of chats. And I definitely want to cache each chat after opening. But I don't know how to do it nicely and correctly. |
Yeah I don’t think we have any special tricks to solve this UI pattern at the moment. It sounds like this might be another situation where feature request #103 could be helpful though! Service workers might be another avenue worth exploring. I think you could cache the tab contents with a service worker, then when Alpine AJAX requests the tab on repeated clicks, the service worker can handle the request locally instead of making a round-trip to the server. Using a service worker would have the added bonus of providing some basic offline support for your users too. |
https://github.com/DannyMoerkerke/basic-service-worker is a great service worker resource. |
People like tabs.
The text was updated successfully, but these errors were encountered: