Skip to content

Move idom.widgets.hotswap to testing utils #866

Closed
@Archmonger

Description

@Archmonger

Discussed in #865


Originally posted by Archmonger December 30, 2022
Ever since we've formalized support for conditionally rendered components, hotswap seems to have become a rather pointless utility.

This conversation is to discuss whether to deprecate/remove it.


Originally posted by rmorshea December 30, 2022
The primary function isn't really to facilitate conditional rendering. Rather, it's to allow you to swap components from outside the normal rendering flow. With that said, it's uses are pretty niche. At the moment it has one usage in IDOM's testing utilities. I'd say it would make sense to turn it into a private util in idom.testing.backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-3-lowMay be resolved one any timeline.type-refactorAbout improving code structure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions