Skip to content

[BUG]: syncShapesToTables weird behaviour #962

@barbalex

Description

@barbalex

Describe the bug
See: #888 (comment).

I closed it and do not have the permissions to reopen.

This seems to be caused by the caching of shape requests.

Using a manipulated fetchClient (https://electric-sql.com/docs/api/clients/typescript#options) seems to solve (?) the issue:

const noCacheFetch: typeof fetch = (input, init) =>
  fetch(input, { ...init, cache: 'no-store' })

I'm pretty sure this is not a good idea though.

It seems this is expected behaviour, see: electric-sql/electric#2995 (comment). But if so, maybe the docs should be more explicit? Most probably though I have just not understood how to do this correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions