qwik icon indicating copy to clipboard operation
qwik copied to clipboard

CLI documentation link points to 404 page[🐞]

Open joschan21 opened this issue 2 years ago • 1 comments

Which component is affected?

Qwik City (routing)

Describe the bug

If you make a mistake using the routeAction$, the linked documentation page is a 404 - resource not found.

16:22 warning routeAction$()can only be declared inlayout.tsx, index.tsxandplugin.tsxinside thesrc/routes directory, instead it was declared in "C:/Users/Josch/Desktop/qwik-test/src/components/starter/counter/counter.tsx". Please check the docs: https://qwik.builder.io/qwikcity/loader qwik/loader-location

Cheers

Reproduction

https://qwik.builder.io/qwikcity/loader

Steps to reproduce

I tried this inside of the default counter component, that's how the error popped up:

const useRequest = routeAction$((props) => { console.log('make req') })

System Info

Windows 10, not relevant tho

Additional Information

No response

joschan21 avatar May 09 '23 09:05 joschan21

It has been resolved. https://github.com/BuilderIO/qwik/pull/4153

whale2002 avatar May 10 '23 14:05 whale2002