mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-20 22:31:58 +00:00
remove brackets around address
This commit is contained in:
parent
99674fcf94
commit
b8806b0854
5 changed files with 7 additions and 7 deletions
|
@ -58,7 +58,7 @@ async fn get_server_data() -> Result<String, ServerFnError> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
launch!(@[([127, 0, 0, 1], 8080)], app, {
|
launch!(@([127, 0, 0, 1], 8080), app, {
|
||||||
server_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
|
server_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
|
||||||
incremental,
|
incremental,
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,7 +11,7 @@ use dioxus_fullstack::prelude::*;
|
||||||
use dioxus_router::prelude::*;
|
use dioxus_router::prelude::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
launch_router!(@[([127, 0, 0, 1], 8080)], Route, {
|
launch_router!(@([127, 0, 0, 1], 8080), Route, {
|
||||||
incremental,
|
incremental,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ use dioxus_fullstack::prelude::*;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
launch!(@[([127, 0, 0, 1], 8080)], app, (AppProps { count: 5 }), {
|
launch!(@([127, 0, 0, 1], 8080), app, (AppProps { count: 5 }), {
|
||||||
incremental,
|
incremental,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ use dioxus_fullstack::prelude::*;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
launch!(@[([127, 0, 0, 1], 8080)], app, (AppProps { count: 5 }), {
|
launch!(@([127, 0, 0, 1], 8080), app, (AppProps { count: 5 }), {
|
||||||
incremental,
|
incremental,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@ macro_rules! launch_router {
|
||||||
$router_cfg
|
$router_cfg
|
||||||
};
|
};
|
||||||
|
|
||||||
(@[$address:expr], $route:ty, $(cfg: $router_cfg:expr,)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
|
(@$address:expr, $route:ty, $(cfg: $router_cfg:expr,)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
|
||||||
dioxus_fullstack::launch!(
|
dioxus_fullstack::launch!(
|
||||||
@[$address],
|
@$address,
|
||||||
dioxus_fullstack::router::RouteWithCfg::<$route>,
|
dioxus_fullstack::router::RouteWithCfg::<$route>,
|
||||||
(dioxus_fullstack::launch_router!(@router_config $($router_cfg)?)),
|
(dioxus_fullstack::launch_router!(@router_config $($router_cfg)?)),
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,7 @@ macro_rules! launch {
|
||||||
$props
|
$props
|
||||||
};
|
};
|
||||||
|
|
||||||
(@[$address:expr], $comp:path, $(( $props:expr ),)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
|
(@ $address:expr, $comp:path, $(( $props:expr ),)? {$($rule:ident $(: $cfg:expr)?,)*}) => {
|
||||||
#[cfg(feature = "web")]
|
#[cfg(feature = "web")]
|
||||||
{
|
{
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
|
|
Loading…
Reference in a new issue