add selector example to readme

This commit is contained in:
Evan Almloff committed 2023-08-08 13:27:45 -07:00
1 parent ba7a663eb6
commit 69dab86873
4 files changed
+65 -3

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ impl ScopeContext {
/// Schedule an update for any component given its [`ScopeId`].
///
/// A component's [`ScopeId`] can be obtained from `use_hook` or the [`ScopeState::scope_id`] method.
/// A component's [`ScopeId`] can be obtained from `use_hook` or the [`crate::scopes::ScopeState::scope_id`] method.
///
/// This method should be used when you want to schedule an update for a component
pub fn schedule_update_any() -> Option<Arc<dyn Fn(ScopeId) + Send + Sync>> {