Skip to content

Commit 3906fc2

Browse files
committed
enhance: Make SUBSCRIBE action field ordering consistent with other actions
1 parent 0c39da0 commit 3906fc2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/cold-bugs-shave.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@data-client/core': patch
3+
'@data-client/react': patch
4+
---
5+
6+
SUBSCRIBE action field ordering consistent with other actions

packages/core/src/controller/actions/createSubscription.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export function createSubscription<E extends EndpointInterface>(
99
): SubscribeAction<E> {
1010
return {
1111
type: SUBSCRIBE,
12-
endpoint,
13-
args,
1412
key: endpoint.key(...args),
13+
args,
14+
endpoint,
1515
};
1616
}
1717

0 commit comments

Comments
 (0)