Don't wait for the refreshable to refresh it's state

This commit is contained in:
aditya-K2
2023-04-16 23:32:32 +05:30
parent 5bed42a1ed
commit 02bf6563e9

View File

@@ -38,7 +38,9 @@ func (a *Action) Func() ActionFunc {
if a != nil && a.f != nil {
val := a.f(e)
if a.refreshable != nil && val == nil {
a.refreshable.RefreshState()
go func() {
a.refreshable.RefreshState()
}()
}
return val
}