wouter
wouter copied to clipboard
[feature] Wrap Link with forwardRef
There are cases where we need a working ref to rendered link dom node, it would really be helpful if this gets into the code.
hi~, can you tell me what the scene is? maybe there are some workarounds.
Most typical example would be MUI <Button component={Link} />
- which fails due to the missing ref.
Same here, would be useful with MUI
@cbbfcd I can go ahead and create a pr if it's ok, should be pretty straightforward.
This has been implemented and released in https://github.com/molefrog/wouter/releases/tag/v2.8.0
Thanks @trymoto for your help!