Skip to content

Commit

Permalink
chore: add missing returning type and fix typo (mobxjs#3735)
Browse files Browse the repository at this point in the history
* fix: typo

* fix: add missing return type
  • Loading branch information
situ2001 committed Jul 24, 2023
1 parent ee09a67 commit f4129ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mobx-react-lite/src/useObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function createReaction(adm: ObserverAdministration) {
// BC
adm.stateVersion = Symbol()
}
// onStoreChange won't be avaliable until the component "mounts".
// onStoreChange won't be available until the component "mounts".
// If state changes in between initial render and mount,
// `useSyncExternalStore` should handle that by checking the state version and issuing update.
adm.onStoreChange?.()
Expand Down
2 changes: 1 addition & 1 deletion packages/mobx/src/core/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const $mobx = Symbol("mobx administration")

export interface IAtom extends IObservable {
reportObserved(): boolean
reportChanged()
reportChanged(): void
}

export class Atom implements IAtom {
Expand Down

0 comments on commit f4129ed

Please sign in to comment.