Skip to content

Commit

Permalink
Format docs
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Sep 9, 2024
1 parent 8d04ff9 commit 72a52a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This section provides a general guide on effectively managing application state

Rinf performs best when the application logic is written entirely in Rust, with Flutter used solely for the GUI. In such cases, you might want to store the application state in Rust.

## 💥 Actor model
## 💥 Actor Model

The actor model is highly recommended for managing asynchronous state in Rust. By encapsulating state and behavior within actor structs, which maintain ownership and handle their own async tasks, the actor model provides a scalable and reliable way to manage complex state interactions.

Expand Down Expand Up @@ -53,7 +53,7 @@ async fn main() {
}
```

## 🧱 Static variables
## 🧱 Static Variables

Generally, it's advisable to avoid static variables due to their characteristics, which can lead to issues such as difficulties in testing and managing lifetimes. If you must use static variables, you can declare them as shown below, ensuring they span the entire duration of the app.

Expand Down

0 comments on commit 72a52a9

Please sign in to comment.