-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
In the Our Favorites Page section of the document, the example code for the Favorites page has an incorrect reference to list_dogs; it should be super::super::backend::list_dogs instead of super::backend::list_dogs.
| let mut favorites = use_resource(super::backend::list_dogs).suspend()?; |
Because according to the file organization structure of the example code, the super of Favorites refers to the components folder, which is juxtaposed with backend.rs. So a super can't be accessed. It is recommended to change it to crate::backend::list_dogs.
docsite/docs-src/0.6/src/guide/routing.md
Lines 15 to 27 in df1df4a
| ```sh | |
| ├── Cargo.toml | |
| ├── assets | |
| │ └── main.css | |
| └── src | |
| ├── backend.rs | |
| ├── components | |
| │ ├── favorites.rs | |
| │ ├── mod.rs | |
| │ ├── nav.rs | |
| │ └── view.rs | |
| └── main.rs | |
| ``` |
Metadata
Metadata
Assignees
Labels
No labels