Hey, when i updated to alpha4-build348 i started g...
# compose-web
h
Hey, when i updated to alpha4-build348 i started getting the following error: https://pastebin.com/rgfings1 Anybody getting this issue or have any idea on how to solve it? the cause seems to be this state
Copy code
val (modalState, setModalState) = remember { mutableStateOf<(@Composable () -> Unit)>({ loading() }) }
👀 1
o
I'll have a look. It's a bug.
Btw, I think the change that causes the issue was merged even earlier than build348. From what version did you update?
h
It was from build310
👍 1
o
as a temporary workaround you can use:
Copy code
var modalState by remember { mutableStateOf<(@Composable () -> Unit)>({ loading() }) }

//then later:

modalState = { SomeOtherComposable() }
👍 2