react-component / react-component/select
带有value的初始化时向后端请求选项,希望在这一时刻将这些选项也缓存下来。
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 938
- Forks
- 482
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 2
Description
我看到是有缓存选项这一功能的。但在初始化时,将value传入,此时根据value向后端请求对应的选项,这些选项没有被缓存下来。后续刷新选项后,这些value对应的option会变成{}。

不知道是否能支持呢?
或者在外部将初始化选中的选项缓存下来,再拼接进去了。
Contributor guide
No contributing guide indexed for this repository
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
Start by reproducing the initialization flow described in the issue: provide a value, let the component request its matching options, then refresh the options. Trace the select initialization and option-cache handling; done means the value's options remain available instead of becoming {} after refresh, with a regression test covering that sequence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100