added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks

This commit is contained in:
andrey committed 2024-02-27 10:15:38 +08:00
1 parent 451a8f231e
commit df0d45be48
8 files changed
+99 -7

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ use crate::write::Writable;
use crate::{GlobalMemo, GlobalSignal, MappedSignal, ReadOnlySignal, SignalData};
use generational_box::{AnyStorage, Storage};
use std::ops::Index;
use std::{
fmt::{Debug, Display},
ops::{Add, Div, Mul, Sub},
+2 -2
View File
@@ -10,8 +10,8 @@ use generational_box::{AnyStorage, Storage, SyncStorage, UnsyncStorage};
use std::{
any::Any,
collections::HashSet,
ops::{Deref, DerefMut},
sync::Mutex,
ops::{Deref, DerefMut, Index, IndexMut},
sync::{Arc, Mutex},
};
/// Creates a new Signal. Signals are a Copy state management solution with automatic dependency tracking.