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 really enjoy this photo viewer but am encountering some limitations, hence I would like to make some suggestions.
My issue is that I want to cache the images displayed locally, but can only either load all of them beforehand or have to display them from URL due to the fact that once the Photo Viewer is open, updates to its properties seem not to be recognized.
I have found related issues, such as #6, #43 and #61 that could all be done if there was a way to feed your own asynchronous supply of images to the library. An example: I know I have four pictures, but provide four promises for them instead of the actual file/web url. Once the promise is called, I can download uncached files or find the cached filename and serve it to the photo viewer. This could be tied into one's custom caching solution or something like Fast Image. Even better, you could have a small placeholder image and update it to the real one once provided.
Let me know if this is something you want to add in the future. So far, I took a quick look inside the library and it looks like most of these changes will need to be done on the native side, as the JS side works as expected (state updates trigger refreshes).
The text was updated successfully, but these errors were encountered:
Hi there,
I really enjoy this photo viewer but am encountering some limitations, hence I would like to make some suggestions.
My issue is that I want to cache the images displayed locally, but can only either load all of them beforehand or have to display them from URL due to the fact that once the Photo Viewer is open, updates to its properties seem not to be recognized.
I have found related issues, such as #6, #43 and #61 that could all be done if there was a way to feed your own asynchronous supply of images to the library. An example: I know I have four pictures, but provide four promises for them instead of the actual file/web url. Once the promise is called, I can download uncached files or find the cached filename and serve it to the photo viewer. This could be tied into one's custom caching solution or something like Fast Image. Even better, you could have a small placeholder image and update it to the real one once provided.
Let me know if this is something you want to add in the future. So far, I took a quick look inside the library and it looks like most of these changes will need to be done on the native side, as the JS side works as expected (state updates trigger refreshes).
The text was updated successfully, but these errors were encountered: