-
Notifications
You must be signed in to change notification settings - Fork 2
[Front] Reload management #66
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
Comments
Hi @clostao, This is not that simple 🤔, and I agree with the fact that,
Above could have worked if we where use server-side data fetching e.g. But In our case, it we using I am listing some way, which can achieve this and make it better. Approach 1 (not UX friendly) because we will need to add a refresh button
Approach 2
Approach 3 (I would go for, will help in long run)Whenever, we have this kind of use case, where component are dependent to each other, we should consider having global store, architecture, that help to reduce the complexity and maintain the data Consistency. So we should Maintain a global store, as we are using One time changes, but help to extend thing further, easily like
etc. Let me know, if you like any of the solution, I would love to do the implementation. cc - @jfrank-summit, @marc-aurele-besner Meaning while, can I get the deployed url version for this ENV key.
|
I'm under the impression that many of these query could be switched to subscription and this should fix the issue. |
Hi @marc-aurele-besner, I was expecting this question, thank you for asking. Yes we can go with Approach 1 also, It just need to have nested Props drilling, which I don't like 😅, when we extend thing, It becomes hard to mange.
I was not aware about this, if we are going to have subscription, then we can have it Approach 1 for now, and subscription will anyway overcome this 🚀. |
Currently when a user makes a write operation (e.g upload a file) for reloading data from the application a
window.location.reload()
is used. This should change to some alternative such asrouter.refresh()
.The text was updated successfully, but these errors were encountered: