Closed philipbalbas closed 2 years ago
Configuring variablesFromContext
on that page should do the trick!
Something like:
export default withRelay(MyPage, {
/* ... */
variablesFromContext: ctx => ({ topicSlug: ctx.query.topicSlug }),
});
thanks that did the trick
I have this route
/chapter/[chapterSlug]/topic/[topicSlug]
however the preloadedQuery passes both thechapterSlug
andtopicSlug
to the query. How do I make it so that onlytopicSlug
is passed.