Package structure

43 views
Skip to first unread message

Michael Hugi

unread,
Nov 27, 2023, 12:10:31 PM11/27/23
to Service Weaver
Hello

I'm trying to do an application that hase multiple different UIs. 
When I want to create a UI for a component i add a listener to the component and add the serve logic to the init function. This seems to work fine, as long as the component is in the main package. When my application grows I want to make use of packages of course. As soon as I outsource such a component to a package, weaver won't find the listener defined in the toml file.

How can I solve this?
Thanks for your help

mwhittaker

unread,
Nov 27, 2023, 12:14:07 PM11/27/23
to Service Weaver
Hello, 

Service Weaver doesn't currently have a good way to serve listeners from non-main components. In this Stack Overflow post, I elaborate more on this.

Best,
Michael

Reply all
Reply to author
Forward
0 new messages