QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.83k stars 1.31k forks source link

[πŸ“–] Documentation on qwik.builder.io is out of sync? #3434

Closed michaelwu0505 closed 1 year ago

michaelwu0505 commented 1 year ago

Suggestion

I can find "useEndpoint" from search button, but the resulting documentation url does not have information regarding "useEndpoint".

Steps to reproduce:

  1. Goto https://qwik.builder.io/qwikcity/api/, click search button and search for "useEndpoint".

  2. The first result is a link to the API reference "#useEndpoint()", which is the following link: https://qwik.builder.io/qwikcity/api/#useendpoint

  3. However, there is no "useendpoint" entry on https://qwik.builder.io/qwikcity/api

zanettin commented 1 year ago

Hi @michaelwu0505 πŸ‘‹ Thanks for letting us know about this! looks for me like the index no longer gets updated properly.

michaelwu0505 commented 1 year ago

For anyone who is curious, I stumble upon "useEndpoint" in the following youtube video:

"Exploring Qwik City w/ Adam Bradley & Manu MartΓ­nez-Almeida"

From my research, I believe that beginning from qwik v0.22.0, we should be using routeLoader$(). https://qwik.builder.io/docs/route-loader/

zanettin commented 1 year ago

Thanks again @michaelwu0505 πŸ™ since qwik was under heave development with many API changes, some recordings are out-of-date now. but imo still worth to watch it, since they explain the philosophy pretty well. BTW: i am no longer able to find useEndpoint in the search so i'll close this issue πŸŽ‰