You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
contextual_get
works the same way as#[derive(WpContextual)]
does, as it replacesSparseFoo
withFooWithEditContext
,FooWithEmbedContext
&FooWithViewContext
. To ensure that we always work with correct output types, we should return a compiler error if theoutput
type ofWpDerivedRequest
doesn't have theSparse
prefix if thecontextual_get
attribute is used.The text was updated successfully, but these errors were encountered: