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

useFetchHelpText custom hook #37

Closed
Tracked by #74
dpgraham4401 opened this issue Feb 28, 2024 · 0 comments · Fixed by #81
Closed
Tracked by #74

useFetchHelpText custom hook #37

dpgraham4401 opened this issue Feb 28, 2024 · 0 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request

Comments

@dpgraham4401
Copy link
Member

Add a custom hook for fetching help text for a given node.

This hook should return an object with the following properties

{
  data:  HelpTextData
  isLoading: Boolean
  error: HelpTextError
}

The interfaces for data and error will need to be defined as well (they don't need to be named the above).

as a prop, the hook should accept the name of a config, which will correspond to a file name.

We may want to statically type the help text prop to an enum, however that would require ajusting the enum every time the help text configs are renamed or new ones are added.

@dpgraham4401 dpgraham4401 converted this from a draft issue Feb 28, 2024
@dpgraham4401 dpgraham4401 added the enhancement New feature or request label Mar 1, 2024
This was referenced Mar 18, 2024
@dpgraham4401 dpgraham4401 self-assigned this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant