Skip to content

feat: export discriminant match predicate - #8

Merged
okyrychenko-dev merged 1 commit into
mainfrom
feat/public-match-predicate
Sep 17, 2026
Merged

okyrychenko-dev merged 1 commit into
mainfrom
feat/public-match-predicate

Conversation

@okyrychenko-dev

Copy link
Copy Markdown
Owner

Summary

Expose the discriminant-matching predicate used by useEffectWhenMatch so it can compose with createEffectWhen.

Changes

  • Rename the internal matching guard to the public matchPredicate factory.
  • Export matchPredicate from the feature module and package root.
  • Reimplement useEffectWhenMatch as a thin wrapper around matchPredicate.
  • Add an end-to-end reusable-hook test covering runtime behavior and union narrowing.

@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@okyrychenko-dev
okyrychenko-dev merged commit e89f417 into main Sep 17, 2026
3 checks passed
@okyrychenko-dev
okyrychenko-dev deleted the feat/public-match-predicate branch September 17, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant