Skip to content

Passing an SDK object to an RTKQuery slice #1942

Discussion options

You must be logged in to vote

Managed to get it working by creating the slice within the context itself. Rather than having the API then exported in a global context, I then get access to it by referring to an API object within the context.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@phryneas
Comment options

@GriffinSauce
Comment options

Answer selected by MichaelGroenewald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants