Skip to content

silent fail if a query is attempted on a service without also providing actions from that service #5

Open
@iainkirkpatrick

Description

@iainkirkpatrick

just found this as the cause of my bug today 😅

i was trying to query against the relationships service using a query object like

queries.push({
  service: 'relationships',
  params: {
    query: {
      sourceId: currentAgent.id
    }
  }
})

without ALSO passing in relevant relationships actions into the actions object of connect. The result was React silently handling the fail (of the componentDidMount i think?) but to the user of feathers-action-react it just appears as if the query is never executed.

i'd write a PR for this, but unsure how you would want this to throw @ahdinosaur :) can discuss tomorrow perhaps?

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