How to achieve caching with Blazor-State ? #325
Unanswered
kanachrisi
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You likely have an ActionHandler that does the Fetch. If you only want to fetch them once you could check if the list is empty and if so send the request to the server. If populated don't. But the question is how do you know when to invalidate your cache? Unless the server is pushing events to the client somehow (signalR maybe?) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to implement caching on the front-end of my application and i am using Blazor-State libray.
But each time i run the application for manging customers it send an api request to get the customers store them in the state.
My need is to use use api for the first time and then state for subsquent times when nothing has changed in back-end server.
How can i accomplish caching with Blazor-State library ?
Thank you for the feedback.
Beta Was this translation helpful? Give feedback.
All reactions