Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(state): on shorthand shouldn't toLowerCase #1648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

Jordan-Hall
Copy link
Contributor

This repairs an issue where the on shorthand for side effects only supports single case lower case action.

repo step https://stackblitz.com/edit/stackblitz-starters-ltqcqj?file=src%2Fmain.ts,src%2Fdata%2Fstate.ts

@github-actions github-actions bot added the { } State @rx-angular/state related label Nov 24, 2023
Copy link
Member

@edbzn edbzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Jordan-Hall thanks for the fix! Could you just provide the scope in the commit message like so fix(state): ...

@Jordan-Hall
Copy link
Contributor Author

Sorry for delay, I had to sort work around for this out as we still on Angular 16 for next few days. Speaking @eneajaho he mentioned adding a test case for it. I've added it the the current side effect test now. If you can think of a better commit title let me know

@Jordan-Hall Jordan-Hall changed the title fix: on shorthand shouldn't toLowerCase fix(state): on shorthand shouldn't toLowerCase Nov 24, 2023
@edbzn edbzn enabled auto-merge November 26, 2023 07:26
@edbzn
Copy link
Member

edbzn commented Nov 26, 2023

Thank you @Jordan-Hall, it seems that some tests are failing. If you have time to have a look, otherwise I'll check that later.

@Jordan-Hall
Copy link
Contributor Author

I'll have a look and resolve it very shortly.

auto-merge was automatically disabled November 27, 2023 04:55

Head branch was pushed to by a user without write access

@Jordan-Hall
Copy link
Contributor Author

@edbzn there two solutions to this, either whats in this PR or just change all propNames to lowercase. I have the pending changes ready if thats a better solution.

This repairs an issue where the on shorthand for side effects only supports single case lower case action. Repo step https://stackblitz.com/edit/stackblitz-starters-ltqcqj?file=src%2Fmain.ts,src%2Fdata%2Fstate.ts
@edbzn
Copy link
Member

edbzn commented Dec 3, 2023

Thank you for the fix @Jordan-Hall!

@edbzn edbzn merged commit dde9efe into rx-angular:main Dec 3, 2023
@Jordan-Hall Jordan-Hall deleted the patch-1 branch January 12, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
{ } State @rx-angular/state related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants