-
Notifications
You must be signed in to change notification settings - Fork 85
Regression on image caching #60
Comments
Actually that is really what I wanted 💃 |
Oh of course my bad, there is nothing else that condition could be checking for, ok :D. So the only problem then is that resetting the query to I like the unix timestamp idea a lot, solves the problem without adding any extra logic to |
Surprisingly the specs didn't pass for me @ 7c0949f. The issue seemed to be that on Windows when I think this can be fixed easily enough by decoupling the debounce from the listener and applying just to triggering a rerender. |
Great, will handle that shortly :D |
@leipert I like your changes moving as much logic as possible to the pathwatcher listener in 7c0949f but there is a regression on deleted images (which I should have added a spec for, my fault). Steps to reproduce:
?v=2
?v=deleted
?v=1
Part of the problem is that
iv > 0
evaluates as false ifiv
isdeleted
orrenamed
. But simply conditioning on that is likely to cause similar regressions after further delete restore cycles.A possible design to fix would be to push the version to
imgVersion[src][1]
if the event is notchange
and restore that version when the image is restored, although I don't know which of the three events is triggered when an image is restored, I would guesschange
by the steps experienced above.Thanks @leipert :D
The text was updated successfully, but these errors were encountered: