clockworklabs / com.clockworklabs.spacetimedbsdk

The SpacetimeDB SDK for C# clients
https://spacetimedb.com
Apache License 2.0
6 stars 0 forks source link

Fixed subscription updates not clearing tables with no subscribed values #182

Closed SteveBoytsun closed 2 weeks ago

SteveBoytsun commented 2 weeks ago

Description of Changes

Describe what has been changed, any new features or bug fixes

Context: https://discord.com/channels/568217153853980682/669989878955638785/1301132060878049332 Currently, when we receive subscription updates, a table will only be diffed if subscription has any rows for that table. If, however, there are no subscribed values, that table will NOT be diffed, and therefore will not get cleared. Values from previous subscription will still be there, so the table is in incorrect state.

This PR fixes that by making sure that ALL tables are checked in state diff

API

If the API is breaking, please state below what will break

Requires SpacetimeDB PRs

List any PRs here that are required for this SDK change to work

Testing

Write instructions for a test that you performed for this PR