mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
remove repetitive words (#3628)
Signed-off-by: gcmutator <329964069@qq.com>
This commit is contained in:
parent
d13ee882ad
commit
43a78bd3ab
@ -19,7 +19,7 @@ pub fn entry(props: &EntryProps) -> Html {
|
||||
let mut class = Classes::from("todo");
|
||||
|
||||
// We use the `use_bool_toggle` hook and set the default value to `false`
|
||||
// as the default we are not editing the the entry. When we want to edit the
|
||||
// as the default we are not editing the entry. When we want to edit the
|
||||
// entry we can call the toggle method on the `UseBoolToggleHandle`
|
||||
// which will trigger a re-render with the toggle value being `true` for that
|
||||
// render and after that render the value of toggle will be flipped back to
|
||||
|
||||
@ -985,7 +985,7 @@ mod tests {
|
||||
let elem_vtag = assert_vtag(next_elem);
|
||||
|
||||
// Sync happens here
|
||||
// this should remove the the "disabled" attribute
|
||||
// this should remove the "disabled" attribute
|
||||
elem_vtag.reconcile_node(&root, &scope, &parent, DomSlot::at_end(), &mut elem);
|
||||
|
||||
assert_eq!(
|
||||
|
||||
@ -5,7 +5,7 @@ use crate::html::{BaseComponent, ChildrenProps, Html};
|
||||
|
||||
/// A Component to represent a component that does not exist in current implementation.
|
||||
///
|
||||
/// During Hydration, Yew expected the Virtual DOM hierarchy to match the the layout used in
|
||||
/// During Hydration, Yew expected the Virtual DOM hierarchy to match the layout used in
|
||||
/// server-side rendering. However, sometimes it is possible / reasonable to omit certain components
|
||||
/// from one side of the implementation. This component is used to represent a component as if a
|
||||
/// component "existed" in the place it is defined.
|
||||
|
||||
@ -36,7 +36,7 @@ The code can be found in the <desc> tag of the svgs.
|
||||
|
||||
- Private - Spawn a new agent in a web worker for every new bridge. This is good for moving shared but
|
||||
independent behavior that communicates with the browser out of components. When
|
||||
the the connected bridge is dropped, the agent will disappear.
|
||||
the connected bridge is dropped, the agent will disappear.
|
||||
|
||||
- Global \(WIP\)
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ An application with Yew router is built as a [Single Page Application (SPA)](htt
|
||||
|
||||
But on a fresh load, such as when navigating to the page by entering it in the address bar or refreshing the page, all of these actions are handled by the browser itself, outside the running application. The browser makes a direct request to the server for that URL, bypassing the router. A wrongly configured server would return with status 404 - Not Found.
|
||||
|
||||
By returning `index.html` instead, the app loads as it normally would as if request was for `/`, until the router notices that the the route is `/show/42` and displays the appropriate contents.
|
||||
By returning `index.html` instead, the app loads as it normally would as if request was for `/`, until the router notices that the route is `/show/42` and displays the appropriate contents.
|
||||
|
||||
### Configuring correct MIME-type for Web Assembly asset.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user