qwik
qwik copied to clipboard
Custom hook useClientEffect runTimeQrl error only with .js extension
Qwik Version
0.9.0
Operating System (or Browser)
MacOS Chrome
Node Version (if applicable)
16
Which component is affected?
Qwik Runtime
Expected Behaviour
Custom hooks should be able to use useClientEffect hook regardless of file extension.
Actual Behaviour
useClientEffect in custom hook does not work with .js file extension. Seems to work fine with .jsx, .ts, and .tsx
Additional Information
Route with test.
Using .js file extension
Using .ts
Custom hook with useClientEffect throws runtimeQrl error with .js extension
export const useConsoleLog = () => { useClientEffect$(() => { console.log('called'); }); };