Skip to content

How important is the optimistic matching feature? #20

@SteveALee

Description

@SteveALee

The optimistic matching case is the only case when the return path is NOT the same as the input path.

const {path, value} = switchPath('/home/foo', {
  '/bar': 123,
  '/home': 456,
});
// path is `/home`
// value is 456

This means we have to use the returned path not th imput path.

Would this feature be missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions