You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I was reading the rendering options and was wondering if they were exclusive of eachother? And if so maybe they should be a string union or enum?
Motivation
Prevents impossible states from happening.
Example
interfaceRouteModule{renderingMode?: 'server'|'client'|'isomorphic'// default is isomophicstreaming?: booleangenerated?: boolean// I noticed this wasn't documented}
The text was updated successfully, but these errors were encountered:
Hey there! Yeah, I thought about using an enum but I feel setting flags to booleans is more developer friendly than assigning strings to a single property? Maybe it's just me, just a perception — but it might be the case that we have a mode property as an alternative to the boolean flags? WDYT?
I think with typescript or js with an editor that understands types it's really easy to autocomplete the strings and typecheck if you make a typo etc.
I think having both is a bad idea for the same reasons having having multiple booleans that represent the same thing is a bad idea. It's possible to represent a bad state even if you typecheck.
I was on the fence if "streaming" is part of "renderingMode" because I'm not sure if "streaming" is relevant for client side rendering or not. (I think it is or could be one day?)
Prerequisites
🚀 Feature Proposal
I was reading the rendering options and was wondering if they were exclusive of eachother? And if so maybe they should be a string union or enum?
Motivation
Prevents impossible states from happening.
Example
The text was updated successfully, but these errors were encountered: