Skip to content

Commit

Permalink
Add empty line before list
Browse files Browse the repository at this point in the history
mkdocs doesn't seem to like this list, and according to their docs, it should have an empty line prior to any list, so there it goes.
  • Loading branch information
mrmans0n committed Sep 27, 2022
1 parent 7069467 commit 09677f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Compose is built upon the idea of a [unidirectional data flow](https://developer.android.com/jetpack/compose/state#state-hoisting), which can be summarised as: data/state flows down, and events fire up. To implement that, Compose advocates for the pattern of [hoisting state](https://developer.android.com/jetpack/compose/state#state-hoisting) upwards, enabling the majority of your composable functions to be stateless. This has many benefits, including far easier testing.

In practice, there are a few common things to look out for:

- Do not pass ViewModels (or objects from DI) down.
- Do not pass `State<Foo>` or `MutableState<Bar>` instances down.

Expand Down

0 comments on commit 09677f3

Please sign in to comment.