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
I would expect this to simply call the complete callback with the cached data in the response.data, however it still tries to perform the web request.
Is the example code out of date? Or is it no longer possible to complete loads in the before middleware? I can't see anything in the code to check if the resource load was completed before making the load request.
The text was updated successfully, but these errors were encountered:
Following the https://github.com/englercj/resource-loader/blob/master/src/middlewares/caching/memory.js middleware example, the following code should populate
resource.data
and not perform a network request. However, callingresource.complete()
doesn't seem to stop the load from happening.I would expect this to simply call the complete callback with the cached data in the
response.data
, however it still tries to perform the web request.Is the example code out of date? Or is it no longer possible to
complete
loads in thebefore
middleware? I can't see anything in the code to check if the resource load was completed before making the load request.The text was updated successfully, but these errors were encountered: