robisim74 / qwik-speak

Translate your Qwik apps into any language
https://robisim74.gitbook.io/qwik-speak/
MIT License
133 stars 15 forks source link

Qwik Speak resolving locale multiple times on first render #122

Closed nelsonprsousa closed 7 months ago

nelsonprsousa commented 7 months ago

I just created a new qwik app and followed the translated routing with url rewriting tutorial.

However, whenever I start the application, looks like the Qwik Speak locale is resolved multiple times: image

Repo: https://github.com/nelsonprsousa/qwik-speak-double-resolve

This doesn't seem desirable, so opening this issue.

robisim74 commented 7 months ago

Qwik Speak resolving locale multiple times on first render

Qwik Speak doesn't do anything.

export const useTest = () => {
    console.log("test");
}; 
export default component$(() => {
  useTest();

  return (
    <QwikCityProvider>
      ...
    </QwikCityProvider>
  );
});

When the the server (not the app) starts the first time, you will see a double log.

Only in dev mode, and not in prod.

I simply don't have time to waste.

Greetings