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

Offline First #77

Open
joshua1 opened this issue Mar 7, 2018 · 3 comments
Open

Offline First #77

joshua1 opened this issue Mar 7, 2018 · 3 comments

Comments

@joshua1
Copy link

joshua1 commented Mar 7, 2018

Hi @dsuryd i want to say once again that this is an amazing library and i have been using it on a small project.
I wish to know , what the design would be like to make dotnetify offline-first (handle state changes offline and sync when connected) as well as the real-time it already is

@dsuryd
Copy link
Owner

dsuryd commented Mar 8, 2018

The strategy is basically to have vm state preloaded and cached so it can serve as a fallback when connection fails; when the connection can be established, the cache is updated with fresh state.

@joshua1
Copy link
Author

joshua1 commented Mar 8, 2018

@dsuryd thanks for the reply. that seems like one way update (server to client). if the state has been modified by the client , does the server get any update too ?

@dsuryd
Copy link
Owner

dsuryd commented Mar 8, 2018

It could, but there may be many cases where you want to control when and how, so this shouldn't be done automatically. What dotNetify could do is to provide state transition hooks with default behavior of doing nothing, but could be freely configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants