Closed aryaemami59 closed 1 year ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit af855bec94c75a915ede41dca047e44e6fbdb157:
Sandbox | Source |
---|---|
Vanilla | Configuration |
Vanilla Typescript | Configuration |
@aryaemami59 : now that #626 is merged, do we still need either of these PRs?
@aryaemami59 : now that #626 is merged, do we still need either of these PRs?
I will go ahead and close this one, and #625 since they are no longer applicable, will probably come up with a new solution on a type level or include a copy paste pattern in the docs.
Hey folks.
So I was digging through the codebase and I thought I could provide some help, the first thing I thought I could do is providing an option to create a pre-typed createSelector function that is typed for the RootState much like
TypedUseSelectorHook
. I came up with a couple of potential solutions. This is the first solution:We can also rename it to
TypedCreateSelectorFunction
.I will make a separate PR for the second solution.