Properly perform right data request on fresh page load.
This commit is contained in:
parent
a8f538eddf
commit
69558f15b4
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user