Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Resource Variables override each other #43

Open
aalolexx opened this issue May 20, 2019 · 1 comment
Open

Resource Variables override each other #43

aalolexx opened this issue May 20, 2019 · 1 comment

Comments

@aalolexx
Copy link

aalolexx commented May 20, 2019

If i create multiple "sub-requests" out of the same main Request, those sub request seem to override each others properties.

this.mainRequest = await getResponseFromEntryPoint('/')
this.resource1 = await this.mainRequest.link('byKey').fetch({key: 'keyVal1'})
this.resource2 = await this.mainRequest.link('byKey').fetch({key: 'keyVal2'})
this.resource3 = await this.mainRequest.link('byKey').fetch({key: 'keyVal3'})

These resource variables override each other. Therefore the edit link on all those resources is the same, the one of the last request.

Is this a bug or am I just using the hal-rest-client wrong?

@jwanner83
Copy link

I'm facing the same issue...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants