File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed
Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,75 @@ Action shapes are simplified and more consistent. [#3143](https://github.com/rea
5353- ` action.meta.nm ` removed (unused)
5454- ` action.payload ` -> ` action.response ` (for SET_RESPONSE)
5555
56+
57+ <DiffEditor >
58+ ``` json title="Before"
59+ {
60+ "type" : " rdc/setresponse" ,
61+ "meta" : {
62+ "key" : " PATCH https://jsonplaceholder.typicode.com/todos/1" ,
63+ "payload" : {
64+ "userId" : 1 ,
65+ "id" : 1 ,
66+ "title" : " delectus aut autem" ,
67+ "completed" : true
68+ },
69+ "args" : [
70+ { "id" : 1 },
71+ { "completed" : true }
72+ ],
73+ "nm" : true ,
74+ "endpoint" : {
75+ "name" : " Todo.partialUpdate" ,
76+ "schema" : {
77+ "key" : " Todo" ,
78+ "schema" : {}
79+ },
80+ "sideEffect" : true ,
81+ },
82+ "fetchedAt" : " 12:44:24.206 PM" ,
83+ "date" : " 12:44:24.334 PM" ,
84+ "expiresAt" : " 1:44:24.334 PM"
85+ },
86+ "error" : false
87+ }
88+ ```
89+
90+ ``` json title="After"
91+ {
92+ "type" : " rdc/setresponse" ,
93+ "key" : " PATCH https://jsonplaceholder.typicode.com/todos/1" ,
94+ "response" : {
95+ "userId" : 1 ,
96+ "id" : 1 ,
97+ "title" : " delectus aut autem" ,
98+ "completed" : true
99+ },
100+ "args" : [
101+ { "id" : 1 },
102+ { "completed" : true }
103+ ],
104+ "endpoint" : {
105+ "name" : " Todo.partialUpdate" ,
106+ "schema" : {
107+ "key" : " Todo" ,
108+ "schema" : {}
109+ },
110+ "sideEffect" : true ,
111+ },
112+ "meta" : {
113+ "fetchedAt" : " 12:44:24.206 PM" ,
114+ "date" : " 12:44:24.334 PM" ,
115+ "expiresAt" : " 1:44:24.334 PM"
116+ },
117+ "error" : false
118+ }
119+ ```
120+ </DiffEditor >
121+
122+
123+
124+
56125### Manager.middleware {#manager-middleware}
57126
58127Managers can now use a ` middleware ` property instead of ` getMiddleware() ` method. [ #3164 ] ( https://github.com/reactive/data-client/pull/3164 )
You can’t perform that action at this time.
0 commit comments