Skip to content

Commit

Permalink
Add simpler unwrapping of createAsyncThunk promises (#970)
Browse files Browse the repository at this point in the history
Co-authored-by: Sweet Liquid <himejisyana@hotmail.com>
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
  • Loading branch information
3 people committed Apr 1, 2021
1 parent 6f6b48b commit 8301370
Show file tree
Hide file tree
Showing 6 changed files with 413 additions and 1,540 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
- uses: c-hive/gha-npm-cache@v1

- name: Install deps
run: npm ci --ignore-scripts
run: npm ci

- name: Pack (including Prepare)
run: npm pack
env:
NODE_ENV: 'production' # this doesn't actually matter, so just set it to production

- uses: actions/upload-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions etc/redux-toolkit.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export type AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig extends AsyncThu
abort(reason?: string): void;
requestId: string;
arg: ThunkArg;
unwrap(): Promise<Returned>;
};

// @public
Expand Down

0 comments on commit 8301370

Please sign in to comment.