Skip to content

Can we remove 'static lifetime bound from Node/El ? #394

Closed
@MuhannadAlrusayni

Description

@MuhannadAlrusayni

Hi, I was wondering why there is 'static bound in Node<Ms: 'static> and El<Ms: 'static> types, after checking I was not able to find their need.

Can we remove 'static bound ?
why I need to do so? because when I want to create elements that contains Node<Ms> in it I have to write that bound every where (e.g. Buutton).

If we cannot remove the bound for any reason, then I think we can move it to the impl block, so any type contains Node<Ms> in it would not need to write the bound.

Or there is better way to solve this issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions