Replies: 3 comments 12 replies
-
It's not clear why you would run an effect outside the |
Beta Was this translation helpful? Give feedback.
-
A In production, using the above function, a js chunk is created in If any files are missing, your production build is wrong: do you want to find out with a logger once it's published? |
Beta Was this translation helpful? Give feedback.
-
Uhm... return an object with translations and error looks kinda ugly too: When you make API servers, you always return an object and a code (ok, or error): it could be a good idea, because the hook would return the same code provided by the function and would be known by the consumer (also solving the problem of mappings). Callback? never tried it in a Qwik QRL function... |
Beta Was this translation helpful? Give feedback.
-
I would like to have a hook to do side effect when failing to load translations. The purpose is I want to separate the concern between the
loadTranslation$
and side effect logic I want to execute.An example of the hook can be:
This hook will execute whenever an error is thrown in
loadTranslation$
Beta Was this translation helpful? Give feedback.
All reactions