Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func useEffect(_ updateStrategy: HookUpdateStrategy? = nil, _ effect: @escaping

A hook to use a side effect function that is called the number of times according to the strategy specified with `updateStrategy`.
Optionally the function can be cancelled when this hook is disposed or when the side-effect function is called again.
Note that the execution is deferred until after ohter hooks have been updated.
Note that the execution is deferred until after other hooks have been updated.

```swift
useEffect {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hooks/Hook/UseEffect.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// A hook to use a side effect function that is called the number of times according to the strategy specified with `updateStrategy`.
/// Optionally the function can be cancelled when this hook is disposed or when the side-effect function is called again.
/// Note that the execution is deferred until after ohter hooks have been updated.
/// Note that the execution is deferred until after other hooks have been updated.
///
/// useEffect {
/// print("Do side effects")
Expand Down