Re: [ClojureScript] Re: Question about code-splitting and loading of dependent modules.

2019-02-02 Thread Khalid Jebbari
I did this already in all modules. I noticed I had to add to the :main
namespace (loader/set-loaded! :cljs-base)

On Sat, Feb 2, 2019, 10:49 AM Thomas Heller  In standard CLJS you must add a manual call to let the runtime know that
> your module finished loading.
>
> (cljs.loader/set-loaded! :a)
>
> Somewhere near the "end" of your modules. Only with this call will the
> runtime continue loading the code.
>
> https://clojurescript.org/guides/code-splitting
>
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/NwRtAgr9ltc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: Question about code-splitting and loading of dependent modules.

2019-02-02 Thread Thomas Heller
In standard CLJS you must add a manual call to let the runtime know that 
your module finished loading.

(cljs.loader/set-loaded! :a) 

Somewhere near the "end" of your modules. Only with this call will the 
runtime continue loading the code.

https://clojurescript.org/guides/code-splitting


-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.