marcglasberg / async_redux

Flutter Package: A Redux version tailored for Flutter, which is easy to learn, to use, to test, and has no boilerplate. Allows for both sync and async reducers.
Other
234 stars 40 forks source link

error in docs #160

Closed simonkenyongithub closed 3 months ago

simonkenyongithub commented 5 months ago

in the documentation (https://pub.dev/packages/async_redux#giving-better-error-messages) the code: ` class LogoutAction extends ReduxAction {

@override Future reduce() async { ... }

@override Object wrapError(error) => LogoutError("Logout failed.", cause: error); }`

is incorrect. the wrapError has a second parameter.

marcglasberg commented 3 months ago

Thank you!

It used to have a single param in the past. This is fixed in our new website: https://asyncredux.com