rjsf-team / rjsf-team/react-jsonschema-form
Asynchronously fetch options (or dynamic select options in general)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.3k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 75
Description
I couldn't find an issue for this or anything in the docs, but is there any way to have a field asynchronously fetch the options for a select dropdown?
I'm sure actually making http requests would be outside the scope of this library but is there any way to do something along the lines of giving a field a promise that resolves to an array of options? Or even synchronously passing a dynamic list of options that are not known when creating the schema?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is identified in the issue. Start by reading the existing select-field and schema/options APIs, then review the 12-comment discussion to determine the intended scope; done should mean a documented, tested way to supply options dynamically, including asynchronous options if that remains in scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100