-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ci: indent and branch #2883
ci: indent and branch #2883
Conversation
✅ Deploy Preview for pinia-playground ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for pinia-official canceled.
|
packages/pinia/src/storeToRefs.ts
Outdated
@@ -120,6 +120,6 @@ export function storeToRefs<SS extends StoreGeneric>( | |||
} | |||
} | |||
|
|||
return refs | |||
return { ...store.actions, ...refs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks but this is intended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I know. This is just an example for the debate @posva . This is what I mentioned it would be an idea to change.
@@ -6,7 +6,7 @@ on: | |||
- 'packages/docs/**' | |||
- 'packages/playground/**' | |||
pull_request: | |||
branches: v2 | |||
branches: [v2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch key is an Array. If defined in one line the Array structure should be provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? It seems to work just fine
Discussion
#2506
Description
storeToRefs
methodThis pull request includes several changes to configuration and code files, focusing on workflow updates and a modification to the
storeToRefs
function in thepinia
package.Workflow configuration updates:
.github/workflows/ci.yml
: Updated thepull_request
branches configuration to use an array format..github/workflows/pkg.pr.new.yml
: Updated thepull_request
branches configuration to use an array format.Code modification:
packages/pinia/src/storeToRefs.ts
: Modified thestoreToRefs
function to return an object that includes bothstore.actions
andrefs
.