Hello, I created this project with the goal of quickly setting up a template using Nuxt and the “On-demand revalidation” configuration, integrated with a backend (currently only Pocketbase).
While researching, I discovered that “On-demand revalidation” is a very valid option for saving server resources in exchange for having more data in the cache, but this option requires integration with the backend you use in your project.
Workflow
The user visits a page
The server checks if that page exists in the cache
If it exists in the cache, Nitro returns the cached page, and Nitro checks in the background whether the backend data has changed by reviewing “the data block”; since the backend did not send any signal, Nitro returns “the data block” from the cache
If the page does not exist in the cache, it generates a new page, and Nitro checks if there is a “data block” in the cache; if there isn’t, it fetches the data from the backend
Nitro’s configuration ensures that when a fetch is performed, that data is stored in the cache; that “data block” will expire in one week unless the backend sends an event to reset it.
If the data changes on the backend, it sends an event to reset the cache in Nitro
Take a look and let me know what you think
Have a good day!
Hi
Hello, I created this project with the goal of quickly setting up a template using Nuxt and the “On-demand revalidation” configuration, integrated with a backend (currently only Pocketbase).
While researching, I discovered that “On-demand revalidation” is a very valid option for saving server resources in exchange for having more data in the cache, but this option requires integration with the backend you use in your project.
Workflow
The user visits a page
The server checks if that page exists in the cache
If it exists in the cache, Nitro returns the cached page, and Nitro checks in the background whether the backend data has changed by reviewing “the data block”; since the backend did not send any signal, Nitro returns “the data block” from the cache
If the page does not exist in the cache, it generates a new page, and Nitro checks if there is a “data block” in the cache; if there isn’t, it fetches the data from the backend
Nitro’s configuration ensures that when a fetch is performed, that data is stored in the cache; that “data block” will expire in one week unless the backend sends an event to reset it.
If the data changes on the backend, it sends an event to reset the cache in Nitro
Hi there, I’m working on a new app with Vuejs 3 and I wonder what are the good practice to architecture the app and to handle guards, JWT token refresh, reactivity and not having spaghetti code.
I started with the basic Vuetify app and added Pinia and the vue-router. 🤠
One problem I want to solve is how to get the list to populate the first page with a list of objects, lets say a book list.
Right now I created a store.books list and an action to call the API, according to the doc ( pinia.vuejs.org/core-concepts/actions.html ).
But then I have to call the action when the user log in, or when the component is mounted, or when there is a refresh.
I found it not very DRY and just not smart, so I need some help and good doc to understand how to structure my app.
Thank you 😌
Hi there, I’m working on a new app with Vuejs 3 and I wonder what are the good practice to architecture the app and to handle guards, JWT token refresh, reactivity and not having spaghetti code.
I started with the basic Vuetify app and added Pinia and the vue-router. 🤠
One problem I want to solve is how to get the list to populate the first page with a list of objects, lets say a book list.
Right now I created a store.books list and an action to call the API, according to the doc ( pinia.vuejs.org/core-concepts/actions.html ).
But then I have to call the action when the user log in, or when the component is mounted, or when there is a refresh.
I found it not very DRY and just not smart, so I need some help and good doc to understand how to structure my app.
Hi Vue professionals! I’m the maintainer of Kellnr, the registry for Rust crates. I’ve created a UI in Vue, but my frontend skill are minimal. I would like to make the UI reactive to look good on mobile screens, too.
Is here some brave soul that can help me? I have no idea where to start.
Hi Vue professionals! I’m the maintainer of Kellnr, the registry for Rust crates. I’ve created a UI in Vue, but my frontend skill are minimal. I would like to make the UI reactive to look good on mobile screens, too.
Is here some brave soul that can help me? I have no idea where to start.
I’m really excited to share it. Before diving into development and investing more time into this project, I would love to hear your thoughts and get some initial feedback on the app’s look.
If this concept receives enough positive interest, I plan to invest further by acquiring a domain and making it available for public use. It will be open source as well.
Thanks in advance!
I’m really excited to share it. Before diving into development and investing more time into this project, I would love to hear your thoughts and get some initial feedback on the app’s look.
If this concept receives enough positive interest, I plan to invest further by acquiring a domain and making it available for public use. It will be open source as well.
The question is not really “what can you use?”, but what have you actually used and what’s your experience with that method or tool (Cordova, Ionic, etc)?
The question is not really “what can you use?”, but what have you actually used and what’s your experience with that method or tool (Cordova, Ionic, etc)?
We have a Vue frontend and I’m getting some feedback when we upgrade to Vue3 we should move to React just for the ecosystem and dev availability. I thought Vue was a better/faster/easier response to react. What are your thoughts?
We have a Vue frontend and I’m getting some feedback when we upgrade to Vue3 we should move to React just for the ecosystem and dev availability. I thought Vue was a better/faster/easier response to react. What are your thoughts?