From a776087f790220bd8927b624ff2d37d0736d400e Mon Sep 17 00:00:00 2001 From: Jordan Kay Date: Tue, 15 Oct 2024 12:29:29 -0400 Subject: [PATCH 1/2] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f307bc..f2c39ae 100644 --- a/README.md +++ b/README.md @@ -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 { From 51b7d2f0cab4495666c3f9d7f37fca2867ca7a9f Mon Sep 17 00:00:00 2001 From: Jordan Kay Date: Tue, 15 Oct 2024 12:30:11 -0400 Subject: [PATCH 2/2] Fix typo in UseEffect.swift --- Sources/Hooks/Hook/UseEffect.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Hooks/Hook/UseEffect.swift b/Sources/Hooks/Hook/UseEffect.swift index 188ebb9..18f80a9 100644 --- a/Sources/Hooks/Hook/UseEffect.swift +++ b/Sources/Hooks/Hook/UseEffect.swift @@ -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")