hal-rest-client icon indicating copy to clipboard operation
hal-rest-client copied to clipboard

Resource Variables override each other

Open aalolexx opened this issue 6 years ago • 1 comments

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?

aalolexx avatar May 20 '19 13:05 aalolexx

I'm facing the same issue...

jwanner83 avatar May 20 '19 14:05 jwanner83