Skip to content

fix: assign properties of mutations in withMutation#288

Draft
michael-small wants to merge 1 commit intomainfrom
bug-mutations-missing-members
Draft

fix: assign properties of mutations in withMutation#288
michael-small wants to merge 1 commit intomainfrom
bug-mutations-missing-members

Conversation

@michael-small
Copy link
Collaborator

Description

Would fix #286

Would fix the following:

// component
readonly myMutation = this.store.myMutation; // Mutation<number, any>

// html
{{ myMutation.isPending() }}

// runtime error:
ERROR TypeError: ctx.myMutation.isPending is not a function

Object.assign will explicitly copy the properties of the mutation so that they are all available

Outstanding before going out of Draft

Tests pending

@michael-small michael-small self-assigned this Feb 25, 2026
@michael-small michael-small added the bug Something isn't working label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

withMutation Typing

1 participant