Offline sync in wasm #372
Replies: 2 comments 5 replies
-
There are many many things that can break, to the point where we can't control all the variables. If it is working for you - great! However, that's a different story than "official support". |
Beta Was this translation helpful? Give feedback.
-
@FrederikFBrandt I have come up with a solution for using the toolkit in WASM as well, similar to your approach. However, when it comes to doing data syncing, custom pull request operations do not work unless I specify a custom query id for every operation. As @tanudhawan stated, under the covers the toolkit uses MD5 hashing for creating the query id automatically which isn't supported in WASM. This can be avoided though if a custom id is set for every operation. Note, i'm not using wasm for a production application, its being uses as a more rapid development app target when building a Blazor Hybrid MAUI application and to allow devs on our team to work on the project without having the mobile tooling setup. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I remember reading that Blazor WASM offline sync isn't supported. I have however put my sqlite db file into the browser cache as base64. My application cannot rely on getting live data every single time a user starts up the wasm client, but it is ok for a full refresh whenever a user decides to clear cache. My solution is working, it feels snappy and it's reliable. My question is, how come it isn't officially supported? Is that a big issue or risk I haven't thought of?
Beta Was this translation helpful? Give feedback.
All reactions