From 84729f1281e1d4eecded16db8070dbf7a92f9005 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:59:50 -0800
Subject: [PATCH] Bump react-redux from 9.0.3 to 9.1.0 in /webapp (#766)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 9.0.3
to 9.1.0.
Sourced from react-redux's
releases. This minor release adds a new syntax for pre-typing
hooks. Previously, the approach for "pre-typing" hooks with your
app settings was a little varied. The result would look something like
the below: export const useAppDispatch: () => AppDispatch = useDispatch
export const useAppSelector: TypedUseSelectorHook<RootState> =
useSelector
export const useAppStore = useStore as () => AppStore
Release notes
v9.1.0
.withTypes
import type { TypedUseSelectorHook } from
"react-redux"
import { useDispatch, useSelector, useStore } from
"react-redux"
import type { AppDispatch, AppStore, RootState } from
"./store"
React Redux v9.1.0 adds a new .withTypes
method to each
of these hooks, analogous to the .withTypes
method found on Redux Toolkit's createAsyncThunk
.
The setup now becomes:
import { useDispatch, useSelector, useStore } from
"react-redux"
import type { AppDispatch, AppStore, RootState } from
"./store"
export const useAppDispatch =
useDispatch.withTypes<AppDispatch>()
export const useAppSelector = useSelector.withTypes<RootState>()
export const useAppStore = useStore.withTypes<AppStore>()
@VorontsovIE
in
reduxjs/react-redux#2110@aryaemami59
in
reduxjs/react-redux#2115hook.withTypes<RootState>()
method by @aryaemami59
in
reduxjs/react-redux#2114@VorontsovIE
made their first contribution in reduxjs/react-redux#2110Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.4...v9.1.0
This bugfix release updates the React Native peer
dependency to be >= 0.69
, to better reflect the need for
React 18 compat and (hopefully) resolve issues with the npm
package manager throwing peer dep errors on install.
@R3DST0RM
in reduxjs/react-redux#2107Full Changelog: https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4
4ebe6e9
version 9.1.094fc5a3
Merge pull request #2114
from aryaemami59/withTypes349e0f0
Remove unused TypedUseSelectorHook
imports78cdeac
Merge branch 'master' of https://github.com/reduxjs/react-redux
into withTypes4b63c88
Merge pull request #2115
from aryaemami59/update-dev-depsb3c8498
Update .eslintrc.json
to remove duplicate config7cf1383
Add hooks.withTypes()
to docs4360ff4
Add JSDocs for useStore
8f84eb9
Export UseDispatch
type and organize exports0e60aa7
Add JSDocs for useDispatch