Skip to content

Commit 4ef465f

Browse files
committed
Merge branch 'master' of github.com:theapache64/rebugger
2 parents f03e1ed + 9299a4a commit 4ef465f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 🐞 Rebugger
22

3+
> Rebugger : A recomposition debugger
4+
35
Being a “compose dev” our enemy number one is unnecessary recompositions 🤕. Often times we use tools like [recompositionHighligher](https://github.com/theapache64/boil/blob/master/files/RecompositionHighlighter.kt), [LogComposition](https://github.com/theapache64/boil/blob/master/files/LogComposition.kt), and layout inspector to count the recomposition, but there’s no direct way to understand “why” the recomposition has happened.
46

57
Rebugger is a simple compose utility function that can track the change in the given arguments. It’ll print the reason for recomposition in your Logcat window.
@@ -115,7 +117,10 @@ fun VehicleUi(
115117

116118
It’ll print something like this
117119

118-
### Fix
120+
![image](https://user-images.githubusercontent.com/9678279/229018052-97d66da3-c716-4553-a930-92ca740facc2.png)
121+
122+
123+
### The Fix
119124

120125
To fix this, you can pass composableName argument to override the automatic name picking behaviour
121126

0 commit comments

Comments
 (0)