mirror of
https://github.com/Sovvie/Chemical.git
synced 2025-08-05 06:29:17 +00:00
Compare commits
No commits in common. "de1166ea699b3ef9c3d955ac65f49d20e3742d6a" and "2d20981357c7fd10e6831220c3bb0660159a5b3d" have entirely different histories.
de1166ea69
...
2d20981357
1 changed files with 4 additions and 4 deletions
|
@ -18,11 +18,11 @@
|
||||||
* [Create: `Chemical.Create()`](#chemicalcreate)
|
* [Create: `Chemical.Create()`](#chemicalcreate)
|
||||||
* [Give: `Chemical.Give()`](#chemicalgive)
|
* [Give: `Chemical.Give()`](#chemicalgive)
|
||||||
* [UI Traits: `Ref`, `onEvent`, `onChange`](#ui-traits)
|
* [UI Traits: `Ref`, `onEvent`, `onChange`](#ui-traits)
|
||||||
6. [State Replication (`Chemical.Reaction`)](#6-state-replication)
|
6. [State Replication (`Chemical.Reaction`)](#6-state-replication-chemicalreaction)
|
||||||
* [Server-Side API](#reaction-server-side-api)
|
* [Server-Side API](#reaction-server-side-api)
|
||||||
* [Client-Side API](#reaction-client-side-api)
|
* [Client-Side API](#reaction-client-side-api)
|
||||||
* [Example Usage](#reaction-example-usage)
|
* [Example Usage](#reaction-example-usage)
|
||||||
7. [Client-Side Routing (`Chemical.Router`)](#7-client-side-routing)
|
7. [Client-Side Routing (`Chemical.Router`)](#7-client-side-routing-chemicalrouter)
|
||||||
8. [Utility Functions](#8-utility-functions)
|
8. [Utility Functions](#8-utility-functions)
|
||||||
* [Await: `Chemical.Await()`](#chemical-await)
|
* [Await: `Chemical.Await()`](#chemical-await)
|
||||||
* [Destroy: `Chemical.Destroy()`](#chemical-destroy)
|
* [Destroy: `Chemical.Destroy()`](#chemical-destroy)
|
||||||
|
@ -417,7 +417,7 @@ Special keys used within the `propertyTable` of `Create` and `Give` to add speci
|
||||||
|
|
||||||
All connections made via these traits are automatically disconnected when the GuiObject they are attached to is destroyed (via `instance:Destroy()` or `Chemical.Destroy()`).
|
All connections made via these traits are automatically disconnected when the GuiObject they are attached to is destroyed (via `instance:Destroy()` or `Chemical.Destroy()`).
|
||||||
|
|
||||||
## 6. State Replication
|
## 6. State Replication (`Chemical.Reaction`)
|
||||||
|
|
||||||
`Chemical.Reaction` is a singleton service that automates the synchronization of state between the server and connected clients. It supports replicating both static values and reactive `Value`/`Computed` objects.
|
`Chemical.Reaction` is a singleton service that automates the synchronization of state between the server and connected clients. It supports replicating both static values and reactive `Value`/`Computed` objects.
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ Reaction:await("PlayerData", tostring(localPlayer.UserId))
|
||||||
-- end)
|
-- end)
|
||||||
```
|
```
|
||||||
|
|
||||||
## 7. Client-Side Routing
|
## 7. Client-Side Routing (`Chemical.Router`)
|
||||||
|
|
||||||
The `Chemical.Router` is a singleton service for managing client-side application flow by defining paths and associating them with reactive `Chemical.Element`s. When the route changes, corresponding `Element`s are activated or deactivated, typically controlling UI visibility.
|
The `Chemical.Router` is a singleton service for managing client-side application flow by defining paths and associating them with reactive `Chemical.Element`s. When the route changes, corresponding `Element`s are activated or deactivated, typically controlling UI visibility.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue