Skip to content

Commit

Permalink
enhance: Make SUBSCRIBE action field ordering consistent with other a…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
ntucker committed Dec 22, 2024
1 parent 0c39da0 commit 3906fc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/cold-bugs-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@data-client/core': patch
'@data-client/react': patch
---

SUBSCRIBE action field ordering consistent with other actions
4 changes: 2 additions & 2 deletions packages/core/src/controller/actions/createSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export function createSubscription<E extends EndpointInterface>(
): SubscribeAction<E> {
return {
type: SUBSCRIBE,
endpoint,
args,
key: endpoint.key(...args),
args,
endpoint,
};
}

Expand Down

0 comments on commit 3906fc2

Please sign in to comment.