Skip to content

define_router_state() Macro is broken for #[cfg(feature="")] types #1615

@jacob-pro

Description

@jacob-pro

Problem
When using define_router_state() with yew_router only Route and RouteService get defined, the cfg feature test does not work because the macro generates code in our own crate rather than the yew_router crate, and is therefore looking at the wrong features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions