Skip to content

Can the show method intelligently prompts those parameters? #152

@george-es

Description

@george-es

We create and register a pop -up window

type MProps = {
    name: string,
    age: number,
};

const M = NiceModal.create<MProps>(({ name, age }) => (
    <div>
        {name}-{age}
    </div>
));
NiceModal.register('M_MODAL', M);

When using it, you cannot intelligently indicate the parameters you need to pass

NiceModal.show('M_MODAL', {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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