Local State and Server Cache: Finding a Balance - NATALIA TEPLUHINA, Vue.js Live 2021
Vue.js Live 2021 #VueJSLive #VueJSLondon #GitNation Website β https://vuejslive.com/ Follow the link to watch the full version of all the conference talks, QnAβs with speakers and hands-on workshop recordings β https://portal.gitnation.org/events/vuejs-london-2021 Talk: Local State and Server Cache: Finding a Balance How many times did you implement the same flow in your application: check, if data is already fetched from the server, if yes - render the data, if not - fetch this data and then render it? I think I've done it more than ten times myself and I've seen the question about this flow more than fifty times. Unfortunately, our go-to state management library, Vuex, doesn't provide any solution for this. For GraphQL-based application, there was an alternative to use Apollo client that provided tools for working with the cache. But what if you use REST? Luckily, now we have a Vue alternative to a react-query library that provides a nice solution for working with server cache. In this talk, I will explain the distinction between local application state and local server cache and do some live coding to show how to work with the latter. This event would not take place without the support of sponsors: π₯ Gold Sponsors StackHawk β https://www.stackhawk.com/ Attest β https://www.askattest.com/careers Ionic β https://ionicframework.com/ Tidelift β https://tidelift.com/ Sentry β https://sentry.io/ π₯ Silver Sponsors Studio 3T β https://studio3t.com/ Maersk β https://www.maersk.com/careers Hasura β https://hasura.io/