diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e8e120..e369ac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +# next + +- Edit README + # 3.0.1 -- Edit example and trigger CI rebuild process +- Edit example and trigger CI rebuild process # 3.0.0 diff --git a/README.md b/README.md index 282db48..c585d99 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ The `source` parameter take in a function to create a `Controller` and keep it w Another way to provide a `Controller` to children components would be using `ControllerProvider` but pass to the `source` param an instance of `Controller` instead of a create function: ```tsx -// existed isntance else where, you would have to manage the references and cleanup yourself though +// existed instance else where, you would have to manage the references and cleanup yourself though @@ -208,7 +208,7 @@ But for cases that one type of `Controller` may has many implemmentations, subcl // query type will now become `TestController` // else where: // useProvider(TestController) - SubclassOfTestController()}> + new SubclassOfTestController()}> , ``` @@ -421,7 +421,7 @@ const controller = useListener( (prev, curr) => true, // callback filter ) // or -const controller = useListener( +useListener( counterInstance, (state) => console.log(state), // callback when state changed (prev, curr) => true, // callback filter