molefrog / wouter

🥢 A minimalist-friendly ~2.1KB routing for React and Preact
https://npm.im/wouter
The Unlicense
6.65k stars 152 forks source link

Allow links to accept `onClick` when used in `asChild` mode #388

Closed molefrog closed 10 months ago

molefrog commented 10 months ago

Also, I narrowed the type of children to be a valid React element.

codesandbox[bot] commented 10 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

stackblitz[bot] commented 10 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

github-actions[bot] commented 10 months ago

size-limit report 📦

Path Size
packages/wouter/esm/index.js 2.08 KB (0%)
packages/wouter/esm/use-browser-location.js 658 B (0%)
packages/wouter/esm/memory-location.js 836 B (0%)
packages/wouter/esm/use-hash-location.js 734 B (0%)
packages/wouter-preact/esm/index.js 1.97 KB (0%)
packages/wouter-preact/esm/use-browser-location.js 553 B (0%)
packages/wouter-preact/esm/use-hash-location.js 609 B (0%)
packages/wouter-preact/esm/memory-location.js 703 B (0%)
codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (91eabf4) 100.00% compared to head (0608eb6) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v3 #388 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 1 1 ========================================= Hits 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.