nylo-core / nylo

Nylo is the fastest way to build your next Flutter mobile app. Streamline your projects with Nylo's opinionated approach to building Flutter apps. Develop your next idea ⚡️
https://nylo.dev
MIT License
586 stars 58 forks source link

nyPullToRefresh. updateState() Issue #138

Closed jitendravn closed 4 months ago

jitendravn commented 4 months ago

_updateFeatureArticles() { updateState( "feature_articles", ); StateAction.refreshPage('feature_articles'); setState(() {}); }

_updateArticles() { StateAction.refreshPage('all_articles');

updateState(
  "all_articles",
);
setState(() {});

}

Please do as soon as possible not updating my state i have sent you a video on instagram please check

jitendravn commented 4 months ago

@agordn52 Have you find something. cause i have created new a project(with latest version of nylo) for checking but same thing occurred

agordn52 commented 4 months ago

Hi @jitendravn,

I'll take a look at my earliest convenience.

agordn52 commented 4 months ago

Hi @jitendravn,

Can you try 5.27.2?

Thanks

jitendravn commented 4 months ago

Sure, I will let you know If its working or not

jitendravn commented 4 months ago

Its working when i use this StateAction.refreshPage('feature_articles');

not in UpdateState('feature_articles')

agordn52 commented 4 months ago

Hi @jitendravn,

Ok great, glad to hear it's working.

Using updateState like that won't work unless you pass in data to update the state.

jitendravn commented 4 months ago

Got it, Thanks