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.
|
```sh |
|
├── Cargo.toml |
|
├── assets |
|
│ └── main.css |
|
└── src |
|
├── backend.rs |
|
├── components |
|
│ ├── favorites.rs |
|
│ ├── mod.rs |
|
│ ├── nav.rs |
|
│ └── view.rs |
|
└── main.rs |
|
``` |
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 besuper::super::backend::list_dogsinstead ofsuper::backend::list_dogs.docsite/packages/docs-router/src/doc_examples/guide_router.rs
Line 201 in df1df4a
Because according to the file organization structure of the example code, the
superof Favorites refers to thecomponentsfolder, which is juxtaposed withbackend.rs. So asupercan't be accessed. It is recommended to change it tocrate::backend::list_dogs.docsite/docs-src/0.6/src/guide/routing.md
Lines 15 to 27 in df1df4a