Skip to content

How transform data from two endpoints? #5058

@acanimal

Description

@acanimal

Hi, I'm using RTKQuery and need a bit of help.
Right know I my createApi has two query endpoints, one to query data to firebase and one to query data on my backend API. The two sets of data are "related" and I would like to have it "merged" in the same state filed.
I know I have the transformResponse but it is only usefull to transform the response of an API before store in the state, what I need is a bit more complicated.
Can someone give some ideas on how to handle this?
Thanks!

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