Skip to content

Commit

Permalink
Add pure annotations to help with DCE
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Nov 22, 2019
1 parent 0f1ab09 commit 5e0c50d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/connect/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ export function createConnect({
}
}

export default createConnect()
export default /*#__PURE__*/ createConnect()
2 changes: 1 addition & 1 deletion src/hooks/useDispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export function createDispatchHook(context = ReactReduxContext) {
* )
* }
*/
export const useDispatch = createDispatchHook()
export const useDispatch = /*#__PURE__*/ createDispatchHook()
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ export function createSelectorHook(context = ReactReduxContext) {
* return <div>{counter}</div>
* }
*/
export const useSelector = createSelectorHook()
export const useSelector = /*#__PURE__*/ createSelectorHook()
2 changes: 1 addition & 1 deletion src/hooks/useStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ export function createStoreHook(context = ReactReduxContext) {
* return <div>{store.getState()}</div>
* }
*/
export const useStore = createStoreHook()
export const useStore = /*#__PURE__*/ createStoreHook()

0 comments on commit 5e0c50d

Please sign in to comment.