mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.9k stars 640 forks source link

Docs: update docs to match the code for addMiddleware #2135

Closed kylemeenehan closed 5 months ago

kylemeenehan commented 5 months ago

What does this PR do and why?

The interface for addMiddleware was wrong in the docs. This change matches the docs with the interface in the code.

Steps to validate locally

Check interface found at src/core/action.ts

coolsoftwaretyler commented 5 months ago

Great catch, @kylemeenehan! Thank you!

I'm gonna merge this now. Sorry it took so long, I did not get a notification about this.

kylemeenehan commented 5 months ago

Great catch, @kylemeenehan! Thank you!

I'm gonna merge this now. Sorry it took so long, I did not get a notification about this.

No problem! Thanks again for the great library!