Skip to content

[Feature]:Should id param on useFunnel always be needed? #62

Open
@bigsaigon333

Description

@bigsaigon333

Package Scope

@use-funnel/core

Description

I want the id parameter on useFunnel to be optional, and I want the URL to remain as ?step=stepName without the id. prefix.

Currently, the id parameter is required, and it appears in the URL as ?id.step=stepName

My goal is to simplify this by skipping the id. and just using step as the name of the searchParams.

I’m only using one useFunnel hook on the page, so having just step in the URL should work fine for me.

Can you guys consider this feature?

const funnel = useFunnel<{ A: {}; b: {} }>({
//  id: '',    <--- I want id parameter to be optional!! and remains in th url ?step=A
  initial: { step: 'A', context: {} },
});

Possible Solution

No response

etc.

No response

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