Properly perform right data request on fresh page load.
This commit is contained in:
@@ -24,6 +24,8 @@ const SEARCH_RESULTS_PER_PAGE: usize = 20;
|
||||
fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model {
|
||||
if url.hash().is_none() {
|
||||
orders.request_url(urls::search("is:unread", 0));
|
||||
} else {
|
||||
orders.notify(subs::UrlRequested::new(url));
|
||||
};
|
||||
orders.subscribe(on_url_changed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user