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
I'm using Remix and I noticed that the various react-router related Context.Provider instances in the React components tree are not named with displayName. I looked into the code, and it appears that all of these are gated behind a build constant, __DEV__. e.g.:
But the ability to switch between imports at run-time (or second build) is a CommonJS feature (package.json has "main": "./dist/main.js",) and not available in the ES6 Module build ("module": "./dist/index.js").
So, how can development mode be used and these displayName values for the various react-router context providers be viewable when using Remix and it's default ES6 Modules configuration?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using Remix and I noticed that the various
react-router
relatedContext.Provider
instances in the React components tree are not named withdisplayName
. I looked into the code, and it appears that all of these are gated behind a build constant,__DEV__
. e.g.:react-router/packages/react-router/lib/context.ts
Lines 168 to 170 in 13ac1b6
But the ability to switch between imports at run-time (or second build) is a CommonJS feature (
package.json
has"main": "./dist/main.js",
) and not available in the ES6 Module build ("module": "./dist/index.js"
).So, how can development mode be used and these
displayName
values for the variousreact-router
context providers be viewable when using Remix and it's default ES6 Modules configuration?Beta Was this translation helpful? Give feedback.
All reactions