mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-29 22:18:08 +08:00
ui: submit search will refresh data
This commit is contained in:
@@ -115,7 +115,7 @@ class SearchPageData
|
||||
if (sp.code != 0) {
|
||||
throw sp.message;
|
||||
}
|
||||
//ref.invalidate(tvWatchlistDataProvider);
|
||||
ref.invalidate(tvWatchlistDataProvider);
|
||||
} else {
|
||||
var resp = await dio.post(APIs.watchlistMovieUrl, data: {
|
||||
"tmdb_id": tmdbId,
|
||||
@@ -129,6 +129,7 @@ class SearchPageData
|
||||
if (sp.code != 0) {
|
||||
throw sp.message;
|
||||
}
|
||||
ref.invalidate(movieWatchlistDataProvider);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user