Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of Get.putAsync() in RC5-9.2.1 #3255

Open
ebala96 opened this issue Nov 14, 2024 · 1 comment
Open

Usage of Get.putAsync() in RC5-9.2.1 #3255

ebala96 opened this issue Nov 14, 2024 · 1 comment
Assignees

Comments

@ebala96
Copy link

ebala96 commented Nov 14, 2024

I see Get.putAsync removed in RC5-9.2.1.

I am currently doing this instead

Get.put(MyGetxController());
await Get.find<MyGetxController>().init();

Is this the correct usage? Or how can I achieve putAsync in RC5-9.2.1?

@egortabula
Copy link

egortabula commented Dec 8, 2024

I see Get.putAsync removed in RC5-9.2.1.

I am currently doing this instead

Get.put(MyGetxController());
await Get.find<MyGetxController>().init();

Is this the correct usage? Or how can I achieve putAsync in RC5-9.2.1?

Hi! You can use
await Get.put(MyGetxController()).init();

I use this for init my services before app start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants