-
Notifications
You must be signed in to change notification settings - Fork 22
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
Draft: params.clones #24
Conversation
- why was it as it was?
- feat: findInStore with params.clones - fix: don't readd picked values - refactor: move _.values to Object.values
This is looking solid. Could you add some tests to make the spec official? |
Currently at it ;) |
I think it's ready now. I also added
Maybe we can just leave it like that. Maybe we should add support for |
We could even do more micro optimizations, if we have a let values
if (!params.temps && !params.clones) {
values = this.items
} else if (params.temps && !params.clones) {
values = this.itemsAndTemps
} else if (!params.temps && params.clones) {
values = this.itemsWithClones
} else {
values = this.itemsAndTempsWithClones
} The more a |
I like it. Let’s call them
itemsAndTemps
itemsAndClones
itemsTempsAndClones
|
Started it and went down the rabbit hole in #30. Need decisions first over there (see the todos at the bottom of the issue). When decisions are clear, I'll add the other todos to this PR. |
Reason for #30 was a failing test. I don't know what to do. There is a quirk about |
@fratzinger, I'm still open to adding this feature. Since this PR is so far outdated, now, I'm going to go ahead and close it and we can re-branch from |
I went ahead and added the querying part of the feature through |
items
/temps
getters -> micro perfaddOrUpdate
params.clones
idField
togetAnyId
itemsAndTemps
,itemsAndClones
,itemsTempsAndClones
,operators
)findInStore
micro-optimizedmodel.reset()
working againresetClone
renaming to the 'What's Different from Feathers-Vuex' sectionclone.reset()
@fratzingerclone.clone()
to the 'What's Different from Feathers-Vuex' sectionBecause
feathers-pinia
usesclones
overcopies
consistently, I decided to call itparams.clones
. It's a (small) breaking change compared tofeathers-vuex
.Also I also added variable
pickedValues
because otherwise if$select
is used, the items get added and added to the store. That's also problematic for clones, because the cloned $selected values would overwrite theitemsById
values. I'm happy to discuss this.closes #30