diff --git a/.changeset/cold-bugs-shave.md b/.changeset/cold-bugs-shave.md new file mode 100644 index 000000000000..286157f7e6aa --- /dev/null +++ b/.changeset/cold-bugs-shave.md @@ -0,0 +1,6 @@ +--- +'@data-client/core': patch +'@data-client/react': patch +--- + +SUBSCRIBE action field ordering consistent with other actions diff --git a/packages/core/src/controller/actions/createSubscription.ts b/packages/core/src/controller/actions/createSubscription.ts index 5c93cf5e8238..669aa1a75ea7 100644 --- a/packages/core/src/controller/actions/createSubscription.ts +++ b/packages/core/src/controller/actions/createSubscription.ts @@ -9,9 +9,9 @@ export function createSubscription( ): SubscribeAction { return { type: SUBSCRIBE, - endpoint, - args, key: endpoint.key(...args), + args, + endpoint, }; }