remove repetitive words (#2046)
Signed-off-by: studystill <chenghuiyue@outlook.com>
This commit is contained in:
1 parent
70f97ec787
commit
3a21ac5710
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
//! The example from the readme!
|
//! The example from the readme!
|
||||||
//!
|
//!
|
||||||
//! This example demonstrates how to create a simple counter app with dioxus. The `Signal` type wraps inner values,
|
//! This example demonstrates how to create a simple counter app with dioxus. The `Signal` type wraps inner values,
|
||||||
//! making them `Copy`, allowing them to be freely used in closures and and async functions. `Signal` also provides
|
//! making them `Copy`, allowing them to be freely used in closures and async functions. `Signal` also provides
|
||||||
//! helper methods like AddAssign, SubAssign, toggle, etc, to make it easy to update the value without running
|
//! helper methods like AddAssign, SubAssign, toggle, etc, to make it easy to update the value without running
|
||||||
//! into lock issues.
|
//! into lock issues.
|
||||||
|
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ async fn handle_server_fns_inner(
|
|||||||
|
|
||||||
|
|
||||||
// it it accepts text/html (i.e., is a plain form post) and doesn't already have a
|
// it it accepts text/html (i.e., is a plain form post) and doesn't already have a
|
||||||
// Location set, then redirect to to Referer
|
// Location set, then redirect to Referer
|
||||||
if accepts_html {
|
if accepts_html {
|
||||||
if let Some(referrer) = referrer {
|
if let Some(referrer) = referrer {
|
||||||
let has_location = res.headers().get(LOCATION).is_some();
|
let has_location = res.headers().get(LOCATION).is_some();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ use crate::{CopyValue, Readable, Writable};
|
|||||||
/// When a signal calls .read(), it will look for the current ReactiveContext to read from.
|
/// When a signal calls .read(), it will look for the current ReactiveContext to read from.
|
||||||
/// If it doesn't find it, then it will try and insert a context into the nearest component scope via context api.
|
/// If it doesn't find it, then it will try and insert a context into the nearest component scope via context api.
|
||||||
///
|
///
|
||||||
/// When the ReactiveContext drops, it will remove itself from the the associated contexts attached to signal
|
/// When the ReactiveContext drops, it will remove itself from the associated contexts attached to signal
|
||||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||||
pub struct ReactiveContext {
|
pub struct ReactiveContext {
|
||||||
inner: CopyValue<Inner, SyncStorage>,
|
inner: CopyValue<Inner, SyncStorage>,
|
||||||
|
|||||||
Reference in new issue
Block a user