hal-rest-client
hal-rest-client copied to clipboard
Resource Variables override each other
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?
I'm facing the same issue...