Skip to content
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

[Suggestion] Supporting acting as a local datastore in Blazor Wasm (Client Side) #106

Open
russkyc opened this issue Nov 22, 2024 · 1 comment

Comments

@russkyc
Copy link

russkyc commented Nov 22, 2024

Currently this is storing data inside a single json file, taking this into consideration would it be possible to make this store into the browser local storage to be used as a client side datastore for blazor webassembly? Thanks!

@ttu
Copy link
Owner

ttu commented Nov 24, 2024

Thanks! This is an interesting idea.

I haven't done any Blazor development, so I'm not immediately sure if this could be implemented easily. However, it might not be a big implementation. Internally, JsonFlatFileDataStore only handles JSON objects, and actual file access is only a minor functionality. If we switch from reading and storing JSON from a file to local storage, that might do the trick.

The current file access implementation: https://github.com/ttu/json-flatfile-datastore/blob/master/JsonFlatFileDataStore/FileAccess.cs

If I have some time, I will do some proof of concept and try it out. If anyone else has time to check how this could be implemented, I would appreciate some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants