Comments (5)
If you are using the built-in DataCache
, it has a so-called staging area where it stores the data while it's being saved on disk asynchronously, so there is no need to wait until it finishes. It's a documented behavior, so you can rely on it continuing working this way.
from nuke.
i believe i am, but i'm noticing a slight delay. my flow is
- cache the image
- in parallel, fetch the image and show it in a view that's presented modally
the image shows up black (i.e., i think it fails to load).
if i dismiss the modal, then re-present it, i think it works. so likely, there's something with threading/waiting for the staging area to accept the value before i try to fetch it
is there some way i can syncronize that? by submitting the logic to present the modal to a certain thread, or waiting for a notification to fire?
from nuke.
Hey, can you please share the code that you are using?
There is a public API: flush(for:)
that clears the staging area and puts the data on disk immediately. But there should be no need in using it, so I'm not sure it's going to help in this case. The root cause is likely somewhere else.
from nuke.
#755 is how i'm using the API. from running the test i just wrote, it looks like it doesn't result in a cache hit
from nuke.
solved by the PR
from nuke.
Related Issues (20)
- Status on video support HOT 2
- [Example] Nuke Video Minimal Working Example HOT 3
- Placeholder issues on Nuke Video HOT 2
- Support for LazyVStack HOT 1
- Animation triggers every time HOT 1
- Wrong image scaling in SwiftUI (layout size is calculated in pixels) HOT 5
- Custom HTTP header example HOT 1
- LazyImage: What is the correct way to reload reload an image after a network failure? HOT 2
- Use GIF with NukeUI HOT 2
- Custom CacheKey like SDWebImage HOT 1
- Images fetched with ImagePrefetcher on shared pipeline are not in cache, but they are when manually loading each one HOT 1
- Include Privacy Manifests for the SDK HOT 4
- Is it possible to use a custom CIFilter with an ImageRequest? HOT 2
- Missing support for macCatalyst in Nuke 12.4 HOT 2
- LazyImage(url:) does not load image when using ImageRenderer HOT 3
- Add mandatory privacy manifest HOT 1
- SwiftUI Warning: Accessing StateObject's object without being installed on a View. This will create a new instance each time. HOT 2
- Xcode 15.3 concurrency warnings when using `Screen.scale`
- The operation couldn’t be completed: ImagePipeline.Error error 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuke.