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

Issues with moving to this service #2

Closed
ledpup opened this issue Apr 20, 2024 · 3 comments · Fixed by #3
Closed

Issues with moving to this service #2

ledpup opened this issue Apr 20, 2024 · 3 comments · Fixed by #3

Comments

@ledpup
Copy link

ledpup commented Apr 20, 2024

Hi,

I just switched to your library after using https://github.com/arivera12/BlazorCurrentDevice, because of arivera12/BlazorCurrentDevice#5.

I've gotten it working but I had a couple of issues. They were:

  • In the readme, it says @using CurrentDevice but it should be @using BlazorCurrentDevice
  • I was using the service in two components. If I called the service twice to see if it's a mobile device or not, the first time it calls fine without issue. After that it throws an exception saying the key (Android) is already added. I got around this by only making the call once and then pusing the "IsMobileDevice" parameter through to the components I wanted.

Otherwise, looks like it's working well. Thanks!

@ledpup
Copy link
Author

ledpup commented Apr 20, 2024

For anyone interested, my PR to switched between libraries: ledpup/ClimateExplorer#407

@HugoVG
Copy link
Owner

HugoVG commented Apr 20, 2024

Oh let me fix that real quick, thanks for reporing

@HugoVG
Copy link
Owner

HugoVG commented Apr 20, 2024

Hopefully this fixes it.

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

Successfully merging a pull request may close this issue.

2 participants