Add support for RouteRule to return parameterized route with parameters
Opened this issue · 0 comments
miking-the-viking commented
ex: Crypto-Holdings redirect if you have no holdings should be that crypto's page /cypto/:whatever/
, NOT /crypto
export const RequiresHoldingsInCryptoRedirectRule: RouteRuleGen<
CryptoState,
{ currency?: string }
> = [
({ currency = undefined }) => RequiresHoldingsInCrypto({ currency }),
CRYPTO,
];