From b7c8f22d7dfb5cb79d340964c36d5181e531ac43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Fri, 15 Mar 2024 23:19:08 +0100 Subject: [PATCH 1/2] typo online->offline --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c9f07ae..00bd3d6 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ This passes those parameter there to `Component.new` that should return the comp When the component arrives to the front-end it "joins" the backend. Sends it's serialized state to the backend which rebuilds the component and calls `Component.joined`. -After that the component is rendered and the render is sent to the front-end. Why? Because could be that the client was online while some change in the backend happened and the component needs to be updated. +After that the component is rendered and the render is sent to the front-end. Why? Because could be that the client was offline while some change in the backend happened and the component needs to be updated. ### User events From 0e25e7c91384aaeaf0e825500a5695b1146b2d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Fri, 15 Mar 2024 23:21:09 +0100 Subject: [PATCH 2/2] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00bd3d6..1fa2620 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ When a component or its parent has joined it can send user events to the client. ### Subscriptions -Every time a component joins or responds to an event the `Componet._subscriptions` set is reviewed to check if the component subscribes or not to some channel. +Every time a component joins or responds to an event the `Component._subscriptions` set is reviewed to check if the component subscribes or not to some channel. - In case a mutation in a model occurs `Component.mutation(channel: str, action: reactor.auto_broadcast.Action, instance: Model)` will be called. - In case you broadcast a message using `reactor.component.broadcast(channel, **kwargs)` this message will be sent to any component subscribed to `channel` using the method `Component.notification(channel, **kwargs)`.