Skip to content

fix(deps): update dependency async_redux to v28 - #107

Open
renovate[bot] wants to merge 1 commit into
developfrom
renovate/async_redux-28.x
Open

fix(deps): update dependency async_redux to v28#107
renovate[bot] wants to merge 1 commit into
developfrom
renovate/async_redux-28.x

Conversation

@renovate

@renovate renovate Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
async_redux (source) dependencies major 27.1.128.1.0

Release Notes

marcglasberg/async_redux (async_redux)

v28.1.0

  • New extension methods thenIfCompletedOk and thenIfCompletedFailed
    on Future<ActionStatus>, which is the type returned by dispatchAndWait.
    They let you chain code that should run only if the action completed OK,
    or only if it failed. This is important because dispatchAndWait completes
    with an ActionStatus even when the action fails, so a plain .then()
    would run regardless of success or failure:

    // The `PollBlockNumber` action will be dispatched only
    // if `InitializeWeb3` succeeds:
    dispatchAndWait(InitializeWeb3())
        .thenIfCompletedOk((_) => dispatch(PollBlockNumber()));
    
    // You can chain both, to handle success and failure:
    dispatchAndWait(InitializeWeb3())
        .thenIfCompletedOk((_) => dispatch(PollBlockNumber()))
        .thenIfCompletedFailed((status) => log(status.wrappedError));

v28.0.0

  • DEPRECATION WARNING: Store.globalWrapError and Store.errorObserver
    are now deprecated. Use the new globalErrorObserver instead.

  • You can now provide a global error observer using the globalWrapError parameter in
    the Store constructor:

    var store = Store<AppState>(
      initialState: AppState(),
      globalErrorObserver: (store) => MyGlobalErrorObserver(),
    }   
    
    class MyGlobalErrorObserver extends GlobalErrorObserver {
    
      @&#8203;override
      void wrap() {  
        // Here you can use:
        // `error` -> Thrown by the action, AFTER being processed by the action's `wrapError`. 
        // `originalError` -> Error BEFORE being processed by the action's `wrapError`. 
        // `stackTrace` -> The stack trace of the error. 
        // `action` -> The action that threw the error.
        // `store` -> Use it to read the `store.environment` or `store.configuration`.  
      }
    }

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Jul 7, 2026
@renovate
renovate Bot force-pushed the renovate/async_redux-28.x branch 2 times, most recently from 4d30715 to fe3a8a4 Compare July 21, 2026 04:42
@renovate
renovate Bot force-pushed the renovate/async_redux-28.x branch from fe3a8a4 to ab2feca Compare August 11, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants