You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a limitation to the number of conditions allowed in where clauses. I can't find anything in the docs that indicate that this is expected behavior.
When my where clause contains one or two conditions the syncing works as expected.
constshape=useShape({url: 'http://localhost/v1/shape',params: {table: 'activity',// Works as expectedwhere: `team_id = '${teamId}' AND deleted_at IS NULL`},});
But when I add a third condition (which is inevitable for my use case) the shape becomes "stale". It doesn't update even though the underlying table data is updated.
constshape=useShape({url: 'http://localhost/v1/shape',params: {table: 'activity',// Does not workwhere: `team_id = '${teamId}' AND deleted_at IS NULL and archived = false`},});
I've tried arranging conditions in different order and combinations but concluded that it's the number of conditions (>= 3) that result in sync issues. Also tried using replica: 'full' but it didn't make a difference.
Is this a known limitation or a bug?
The text was updated successfully, but these errors were encountered:
There seems to be a limitation to the number of conditions allowed in where clauses. I can't find anything in the docs that indicate that this is expected behavior.
When my where clause contains one or two conditions the syncing works as expected.
But when I add a third condition (which is inevitable for my use case) the shape becomes "stale". It doesn't update even though the underlying table data is updated.
I've tried arranging conditions in different order and combinations but concluded that it's the number of conditions (>= 3) that result in sync issues. Also tried using
replica: 'full'
but it didn't make a difference.Is this a known limitation or a bug?
The text was updated successfully, but these errors were encountered: