Fix typo in RouterService struct's "registered_routes" field name
This was "registerd_routes", missing an "e".
This commit is contained in:
1 parent
e22ba5b1e5
commit
d367e0f89f
1 file changed
+2
-2
@@ -10,7 +10,7 @@ use dioxus_core::ScopeId;
|
|||||||
pub struct RouterService {
|
pub struct RouterService {
|
||||||
pub(crate) regen_route: Rc<dyn Fn(ScopeId)>,
|
pub(crate) regen_route: Rc<dyn Fn(ScopeId)>,
|
||||||
history: Rc<RefCell<BrowserHistory>>,
|
history: Rc<RefCell<BrowserHistory>>,
|
||||||
registerd_routes: RefCell<RouteSlot>,
|
registered_routes: RefCell<RouteSlot>,
|
||||||
slots: Rc<RefCell<Vec<(ScopeId, String)>>>,
|
slots: Rc<RefCell<Vec<(ScopeId, String)>>>,
|
||||||
root_found: Rc<Cell<bool>>,
|
root_found: Rc<Cell<bool>>,
|
||||||
cur_root: RefCell<String>,
|
cur_root: RefCell<String>,
|
||||||
@@ -53,7 +53,7 @@ impl RouterService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
registerd_routes: RefCell::new(RouteSlot::Routes {
|
registered_routes: RefCell::new(RouteSlot::Routes {
|
||||||
partial: String::from("/"),
|
partial: String::from("/"),
|
||||||
total: String::from("/"),
|
total: String::from("/"),
|
||||||
rest: Vec::new(),
|
rest: Vec::new(),
|
||||||
|
|||||||
Reference in new issue
Block a user