From 99e2104eb279b7d47cd1544277fccb30d5b184a7 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 20 Sep 2024 02:11:10 -0700 Subject: [PATCH] refactor: use more explicit type check --- src/sync/client.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/client.luau b/src/sync/client.luau index 7ff95d6..a5901d3 100644 --- a/src/sync/client.luau +++ b/src/sync/client.luau @@ -44,7 +44,7 @@ local function client(options: ClientOptions): ClientSyncer for index = 1, select("#", ...) do local payload: SyncPayload = select(index, ...) - if ignoreUnhydrated and payload.type ~= "init" and not hydrated then + if ignoreUnhydrated and payload.type == "patch" and not hydrated then -- If the client is not initialized, ignore patches. This is -- to prevent patching incomplete state. continue