Replies: 1 comment
-
ShinyHost doesn't exist in v3. You also can't just replace a variable if you don't set it. If you're using MAUI, it was meant to be injected into your viewmodel. If you don't have MAUI, you can use Shiny.Hosting.Host.GetService to get the service you need. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm updating to the new version of Shiny and I used to have the line:
I've now replaced this with the following line (as per the docs):
However, I'm getting the error
Object reference not set to an instance of an object.
when I run my app on Android. I've followed all the other setup instructions in the docs and have scoured the sample code to try and understand where I'm going wrong.I think I understand the error, but it isn't clear to me how I should instantiate my
httpManager
.Any help or pointers would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions