Martichou
Martichou
NNuxt
Created by Martichou on 10/24/2024 in #❓・help
Need to access async methods inside getCachedData, idea?
As the title says, my goal is to access an IndexedDB from the getCachedData as a way to check if the query has been cached or not. But the issue is that the IndexedDB API is async and getCachedData does not support async inside it. I'm not sure to understand if there was a specific reason for that choice or if it's just something that defaulted like that. If the maintainers are open to suggestion/API change (changing getCachedData to async, I'm willing to open a PR for that). Thanks 🙂
4 replies