question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RefreshView executes command on Page loading

See original GitHub issue

Description

I’m using a RefreshView and noticed that the command is fired on the initial page loading. Is this intended?

<RefreshView
            IsRefreshing="{Binding IsChecking}" 
            Command="{Binding CheckConfigurationCommand}"
            />

Steps to Reproduce

  1. Add a RefreshView and bind a command
  2. Start the app

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, I was not able test on other platforms

Affected platform versions

iOS

Did you find any workaround?

Add a “IsStartup” boolean to the CanExecute method for the Command binded to the RefreshView

Relevant log output

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
samhoutscommented, Apr 10, 2023

Hi @janseris !! Thank you for following up!

I removed the triaged and verified labels because we’re doing a pass on all older issues to see if they are in a different state in the latest public versions. I’ll update this one, since you’ve kindly done that for us!

0reactions
janseriscommented, Apr 10, 2023

Thanks for your input. As far as I understood, the RefreshView fires the Command once the IsRefreshing is set true. Coming from my XForm app, I had to set the binded property to true in the command to trigger the loading animation. I need to try what happens if I do not set the IsRefreshing property manually. Is the animation shown then?

For me it does not make sense to trigger the Command by setting the binded boolean to true.

The animation is shown is equivalent to IsRefreshing=true

Read more comments on GitHub >

github_iconTop Results From Across the Web

RefreshView - .NET MAUI
RefreshView defines the following properties: Command , of type ICommand , which is executed when a refresh is triggered.
Read more >
State of RefreshView is invoking RefreshCommand in .NET ...
I have a CollectionView in my .NET MAUI app and I placed it inside a RefreshView . When I call my API to...
Read more >
Xamarin.Forms - Working With RefreshView
In this article, you will learn how to implement Pull to Refresh the Entire Page using RefreshView in Xamarin.Forms.
Read more >
Pull-To-Refresh Everything with RefreshView in Xamarin.Forms
Implement Pull-To-Refresh with any kind of layout with RefreshView that is available for you in Xamarin.Forms. In this video we will learn ...
Read more >
force refresh (f5) of a page after LWC quick action
TO solve this problem first you need to close the quick action and refresh the current page. so first close the quick action...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found