Skip to content

#[derive(WpDerivedRequest)]'s contextual_get should return error for non SparseFoo types #152

Open
@oguzkocer

Description

contextual_get works the same way as #[derive(WpContextual)] does, as it replaces SparseFoo with FooWithEditContext, FooWithEmbedContext & FooWithViewContext. To ensure that we always work with correct output types, we should return a compiler error if the output type of WpDerivedRequest doesn't have the Sparse prefix if the contextual_get attribute is used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions