Closed otakustay closed 6 years ago
Currently SRS makes a structure like:
{ "{params}": { "pendingMutex": 0, "response": { "arrivedAt": 1234567, "params": {}, "data": {} } } }
The problem is we can only access params after response is arrived, or we could only get params by JSON.parse(keyOfQuery) which is really silly
params
JSON.parse(keyOfQuery)
We should put params out of response as a first level key under query object
response
Currently SRS makes a structure like:
The problem is we can only access
params
after response is arrived, or we could only get params byJSON.parse(keyOfQuery)
which is really sillyWe should put
params
out ofresponse
as a first level key under query object