You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Fetch a view that contain errors in its JSON, i.e., there will be errors when rendering it.
The error will make Beagle attempt to load the view from the cache and render it again.
The same error will happen when rendering the view.
The error component will finally get rendered.
The current behavior
As stated in step 2, Beagle will attempt to load the view from the cache because an error occurred when rendering the view returned by the network request. The cached view is the same as the remote view, we just updated it. We know there will be a rendering error, we shouldn't try to render it again.
The expected behavior
The ErrorComponent should be rendered immediately after the first rendering error.
Solution
The problem is that Beagle follows the rule below:
"Try to fetch the view from the server and render it, if it fails, try to fetch it from the cache and render it, if it still fails, render the error component."
When it should actually be:
"Try to fetch the view from the server, if it fails, try to fetch it from the cache, if it still fails, render the error component, otherwise, render the view."
i.e. we should only retry network or cache errors and never the render itself.
Priority
The rendering process is extremely fast, the final user will never see this useless additional render, so this is not a priority, but we should still fix it.
The text was updated successfully, but these errors were encountered:
Beagle Web version: 1.2.0
Steps To Reproduce
The current behavior
As stated in step 2, Beagle will attempt to load the view from the cache because an error occurred when rendering the view returned by the network request. The cached view is the same as the remote view, we just updated it. We know there will be a rendering error, we shouldn't try to render it again.
The expected behavior
The ErrorComponent should be rendered immediately after the first rendering error.
Solution
The problem is that Beagle follows the rule below:
"Try to fetch the view from the server and render it, if it fails, try to fetch it from the cache and render it, if it still fails, render the error component."
When it should actually be:
"Try to fetch the view from the server, if it fails, try to fetch it from the cache, if it still fails, render the error component, otherwise, render the view."
i.e. we should only retry network or cache errors and never the render itself.
Priority
The rendering process is extremely fast, the final user will never see this useless additional render, so this is not a priority, but we should still fix it.
The text was updated successfully, but these errors were encountered: