Skip to content

Commit 5e0c50d

Browse files
committedNov 22, 2019
Add pure annotations to help with DCE
1 parent 0f1ab09 commit 5e0c50d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎src/connect/connect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ export function createConnect({
101101
}
102102
}
103103

104-
export default createConnect()
104+
export default /*#__PURE__*/ createConnect()

‎src/hooks/useDispatch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ export function createDispatchHook(context = ReactReduxContext) {
3838
* )
3939
* }
4040
*/
41-
export const useDispatch = createDispatchHook()
41+
export const useDispatch = /*#__PURE__*/ createDispatchHook()

‎src/hooks/useSelector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ export function createSelectorHook(context = ReactReduxContext) {
131131
* return <div>{counter}</div>
132132
* }
133133
*/
134-
export const useSelector = createSelectorHook()
134+
export const useSelector = /*#__PURE__*/ createSelectorHook()

‎src/hooks/useStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export function createStoreHook(context = ReactReduxContext) {
3434
* return <div>{store.getState()}</div>
3535
* }
3636
*/
37-
export const useStore = createStoreHook()
37+
export const useStore = /*#__PURE__*/ createStoreHook()

0 commit comments

Comments
 (0)
Please sign in to comment.