Skip to content

dispatch root action with leading slash #1324

Open
@exe-dealer

Description

@exe-dealer

What problem does this feature solve?

trailing { root: true } object is verbose and spoils code style

What does the proposed API look like?

dispatch('api/foo', {
  bar: 'buz',
  quz: 'qux',
}, { root: true }) // ugly trailing options object

// leading slash makes it look better
dispatch('/api/foo', {
  bar: 'buz',
  quz: 'qux',
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions