Anyone else doing `LaunchedEffect(isRefreshing == ...
# compose-android
a
Anyone else doing
LaunchedEffect(isRefreshing == true)
to refresh upon screen composition when using PullToRefreshBox for
onRefresh
on pull to refresh?
🚫 2
solved 1
If so, do you get refresh twice? If not, how do you refresh the screen programmatically without pull to refresh?
j
If I understand your example correctly you just have to move the check info the lambda. Because if you use it as key of the LauchedEffect it will lauch this effect by definition every time it turns from false to true and vice versa.
thank you color 1
Copy code
LaunchedEffect(isRefreshing) {
  if (isRefreshing) ...
}
thank you color 1
Not sure if that is the right usage of the api, as I do not use the p2r api.
👍🏻 1