Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useReferenceFieldController Not found in code or documentation #8379

Closed
Slntswrd opened this issue Nov 10, 2022 · 3 comments · Fixed by #8385
Closed

useReferenceFieldController Not found in code or documentation #8379

Slntswrd opened this issue Nov 10, 2022 · 3 comments · Fixed by #8385

Comments

@Slntswrd
Copy link

Slntswrd commented Nov 10, 2022

Hi I am not sure if this is a bug or Support Question or something else.

In the documentation page: "Upgrading to v4", in the section: "Miscellaneous"
in the paragrapher: "Removed Deprecated Elements" I read: "Removed <ReferenceFieldController> (use useReferenceFieldController instead)".

But i can't find anywhere in the documentation the usage for useReferenceFieldController. I have also tried to search it in the code via github search but i can't find it anywhere.

This also happen for other elements in the "Removed Deprecated Elements" paraghapher.
Are those feature a work in progress?

Thanks a lot!

@fzaninotto
Copy link
Member

Yes, those are a work in progress. You've probably seen that we've added a massive amount of documentation already when compared to v3, helping developers with lower-level APIs. This will take time to cover all the public API.

In the meantime, read the source, Luke!

@Slntswrd
Copy link
Author

Hi fzaninotto,
Really thanks for your reply!

But as written before:

I have also tried to search it in the code via github search but i can't find it anywhere.

Maybe i can't use correctly the github search, but when I search for "useReferenceFieldController" and select "from this repository" i can find this mentioned only in the markdown of documentation.
I will get you a screenshot.

Schermata del 2022-11-10 12-35-22

can you please tell me where are those functions in the code?

Thanks again

@fzaninotto
Copy link
Member

Ah, sorry, the hook is called useReference... So I guess we should update the upgrade doc. I'm reopening this issue and marking it as a documentation bug.

Would you be willing to open a PR to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants