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.
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:
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.