https://kotlinlang.org logo
Title
n

napperley

11/03/2020, 2:06 AM
How do I update a HTML element that isn't managed by Fritz2? For example I want to update the text in the title element.
b

Big Chungus

11/03/2020, 8:22 AM
document.getElementById
n

napperley

11/03/2020, 11:46 PM
Is there a way to update a HTML element in a stateless way with a event handler without having to use a Store?
The
document.getElementById
function works fine outside the use of the Fritz2 APIs, but doesn't work with the event handling via a RootStore.
b

Big Chungus

11/04/2020, 8:43 AM
Do that in stores syncedBy handler
n

napperley

11/04/2020, 9:09 PM
Haven't heard of that one before. It doesn't seem to be in the documentation.
Is there an example of
syncedBy
in action?
n

napperley

11/05/2020, 12:45 AM
It doesn't work. End up with
NotImplementError
appearing every time I click on a link in the app while it is running.
Looks as though I have stumbled on a severe bug with event handling in Fritz2.