DEV Community

Discussion on: YEW Tutorial: 03 Services and all

Collapse
 
atoav profile image
David Huss

As for yew 17.3 (maybe even before, I didn't check) Console got a little easier.

You don't need to add a console: ConsoleService field to the App struct anymore. In fact that aproach won't work anymore, which means your example won't compile.

The good thing is, it got simpler. Just use this anywhere in the code:

ConsoleService::log("something");
Enter fullscreen mode Exit fullscreen mode

You might wanna update this post to reflect that, because otherwise it is quite great, thanks for the effort : )

Collapse
 
davidedelpapa profile image
Davide Del Papa

Hi. Yes, it's something I take care of much later in the tutorials. You know at the time of writing this, the stable Yew version I was using was 0.12.
Up to 0.16 the interfaces were pretty stable, but from 0.16 on many changes were introduced.