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
Hope you're doing well! So, I've been using GetIt to handle dependencies in my project, and it's been smooth sailing. But now, I've run into a problem.
Here's the scoop: When I try to access a dependency within the vm:entry-point part, it throws an error, saying that SyncWorker isn't registered in GetIt. I've checked, and SyncWorker is definitely registered. Could it be something with the vm:entry-point causing this issue?
Any thoughts or tips on how to fix this would be really appreciated!
The text was updated successfully, but these errors were encountered:
Just a quick update! I found out that the issue I was facing with GetIt and Workmanager stemmed from Workmanager running on a separate isolate from the main Flutter isolate. To fix it, I made sure to initialize all dependencies inside the Workmanager().executeTask() method.
Hello,
Hope you're doing well! So, I've been using GetIt to handle dependencies in my project, and it's been smooth sailing. But now, I've run into a problem.
Here's the scoop: When I try to access a dependency within the vm:entry-point part, it throws an error, saying that SyncWorker isn't registered in GetIt. I've checked, and SyncWorker is definitely registered. Could it be something with the vm:entry-point causing this issue?
Any thoughts or tips on how to fix this would be really appreciated!
The text was updated successfully, but these errors were encountered: