Skip to content

createEffect doesn't resolve void Params #404

@Guck111

Description

@Guck111

I have this code:

export const getProviders = createEffect("getProviders", {
  handler() {
    return fetch(`http://localhost:8000/api/v1/constructor/providers/`)
  },
})

getProviders()

and I got: Expected 1 arguments, but got 0.

version: 21.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypingsTypescript public type definitions issues

    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