Skip to content

onSaved needs workaround to work #2

@w7tf

Description

@w7tf

Currently onSaved is done the following way:

onSaved: ({ saved }) => {
      const post = store$.posts
        .filter((post) => saved.id === post.id.get())[0]
        .get();
      post.updatedAt = saved.updatedAt; // no set to not retrigger any crud ops
      post.createdAt = saved.createdAt; // no set to not retrigger any crud ops
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions