fix: Internal image cache isn't reset if failed to load (#3001)#3010
Conversation
In the loadImageAsync function, images that failed last time will try to be reloaded.
|
Hey thanks for the fix, but unfortunately I noticed that this will lead to flickering if you type text or change cursor position because the loading animation is applied to the image for a very short time before falling back to the failed state. |
|
Oops, I'll think of another approach. |
|
I followed the cause of the flickering. |
I added automatic image reloading, and now it flickers when I edit a markdown document. Fixed it by setting the height of ag-image-fail and ag-image-loading to be the same as the height of ag-image-fail. (50px)
|
This project recently merged a large refactor (electron-vite migration, PR #4001) that upgraded dependencies and fixed several issues. Please review this PR and let us know if it is still needed, or if the changes have already been addressed upstream. |
In the loadImageAsync function, images that failed last time will try to be reloaded.