Thursday, July 24, 2014

Re: Code splitting with dependency injection (gin)

I just found out that the problem of code splitting malfunctioning in my app was due to the use of RunAsyncCallback in my code (for other things than GWT.runAsync).

See https://code.google.com/p/google-web-toolkit/issues/detail?id=8836

So I was wrong assuming it had to do with GIN.

best regards,
Robert


On Thursday, July 24, 2014 2:10:50 AM UTC+2, Robert Hoffmann wrote:
I am not clear how to enable code splitting, when using dependency injection.

At the beginning of my app I load a gin module to setup bindings, e.g. 
bind(WidgetView.class).to(WidgetViewImpl.class).in(Singleton.class);

But by doing so I introduce a dependency to  WidgetViewImpl.class which prevents the code splitting.

I tried using AsyncProvider but the early dependency to the GinInjector remains and code splitting is also prevented.

How can I resolve this? Thank you

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment