rocicorp/replicache-old

Ensure we round-trip empty arrays correctly

Closed this issue · 1 comments

@arv says he read about a bug/known-issue/by-design quirk of Golang where empty arrays are deserialized to null and thus don't roundtrip. This seems crazy to me, but if so we need to be super careful to return user data faithfully to the application. Translating an empty array to null would be infuriating as a user.

This can no longer happen in Replicache because we treat the payload as opaque. Whee.