loop-payments / react-router-relay

Relay entry point integration for react-router
https://www.npmjs.com/package/@loop-payments/react-router-relay
23 stars 3 forks source link

Why loaders don't use options in loadQuery requests #8

Closed 2-NOW closed 7 months ago

2-NOW commented 9 months ago

According to the SimpleEntryPoint type definition of the entrypoint, among the return types of the getPreloadedProps function, queries are passed the key to be passed as prop and the required arguments for loadQuery - parameters, variables, options, environmentProviderOptions. However, according to internal implementation, only parameters and variables are passed at the time of loadQuery execution and options and environmentProviderOptions are not passed to loadQuery. What is the reason and is this the intended behavior ? I want to control the options of loadQuery at preload in the entrypoint.