Hello,
This took me some time to find but I've ran into this issue.
When I have only simple selector
const somethingSelector = createSelector(
(state: StoreState) => {
return {
state.something
};
}
);
It will not get the state passed in.
I've found that this PR: #1515 has introduced this issue.
Not very sure why the function is not called with state as an argument but it broke my application immediately.
Minimal reproduction of the bug/regression with instructions:
Expected behavior:
Nothing should be broken by a not-breaking release.
Use of createSelector without any previous selectors is broken.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):
Other information:
I would be willing to submit a PR to fix this issue
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[ X] No. I think reverting the previous PR should be done. And a proper fix for the issue it was intented to fix
Hello,
This took me some time to find but I've ran into this issue.
When I have only simple selector
It will not get the state passed in.
I've found that this PR: #1515 has introduced this issue.
Not very sure why the function is not called with state as an argument but it broke my application immediately.
Minimal reproduction of the bug/regression with instructions:
Expected behavior:
Nothing should be broken by a not-breaking release.
Use of createSelector without any previous selectors is broken.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):
Other information:
I would be willing to submit a PR to fix this issue
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[ X] No. I think reverting the previous PR should be done. And a proper fix for the issue it was intented to fix