Skip to content

Make Only more generic#182

Merged
lorenzoh merged 1 commit into
masterfrom
lorenzoh/only-on-type
Oct 19, 2021
Merged

Make Only more generic#182
lorenzoh merged 1 commit into
masterfrom
lorenzoh/only-on-type

Conversation

@lorenzoh

Copy link
Copy Markdown
Member

Only can now take an arbitrary function to filter out blocks that the wrapped encoding is applied to. This is useful when building encoding pipelines where an encoding could be applied to multiple blocks but you only want to apply it to certain blocks.
Previously it was only possible to dispatch on the names of Named blocks.

@lorenzoh lorenzoh merged commit d51af6a into master Oct 19, 2021
@lorenzoh lorenzoh deleted the lorenzoh/only-on-type branch October 25, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant