Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 3b3e39e
Author: arctic_hen7 <arctic_hen7@pm.me>
Date:   Tue May 17 02:50:59 2022 +1000

    Add support for `body` (#420)

    * feat: added support for `body` element

    * Fix http-request-builder example

    The previous change added the `<body>` html tag which conflicts with the identifiers used in this example

    * Satisfy cargo clippy

    Co-authored-by: Luke Chu <lukewchu@outlook.com>
  • Loading branch information
lukechu10 committed May 16, 2022
1 parent 6bb49fa commit 27d00ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/http-request-builder/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ async fn fetch_visits(id: &str) -> Result<Visits, reqwasm::Error> {
let url = format!("{}/{}/hits", API_BASE_URL, id);
let resp = Request::get(&url).send().await?;

let body = resp.json::<Visits>().await?;
Ok(body)
resp.json::<Visits>().await
}

#[component]
Expand Down
1 change: 1 addition & 0 deletions packages/sycamore/src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ define_elements! {
bdi {},
bdo {},
blockquote {},
body {},
br {},
/// The `<button>` HTML element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality.
///
Expand Down

0 comments on commit 27d00ed

Please sign in to comment.