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
This has been discussed in the past and I know that CRA consciously tries to only support stable features.
However the lack of optional chaining and null coalescing have long been one of the major pain points of JavaScript and the proposal recently hit stage 2. Would adding it to CRA be worth some consideration?
We generally don't support stage 2 proposals as they still might change. We support some stage 3 proposals on a case by case basis. I personally love optional chaining but because it's still only stage 2 I don't think we should include it. I would be happy to add it once it reaches stage 3.
Agreed with @iansu. There's been a few notable examples of proposals changing quite drastically during the early stages. We should consider once it progresses further (I can't wait for this feature either!).
Activity
mrmckeb commentedon Jun 23, 2019
I would also love to get this in. @iansu and @ianschmitz, any objections to a PR for this one? It'll be tremendously powerful.
@andrewpeterprifer, this is a great macro that does something similar - https://www.npmjs.com/package/idx.macro
iansu commentedon Jun 23, 2019
We generally don't support stage 2 proposals as they still might change. We support some stage 3 proposals on a case by case basis. I personally love optional chaining but because it's still only stage 2 I don't think we should include it. I would be happy to add it once it reaches stage 3.
ianschmitz commentedon Jun 23, 2019
Agreed with @iansu. There's been a few notable examples of proposals changing quite drastically during the early stages. We should consider once it progresses further (I can't wait for this feature either!).
mrmckeb commentedon Jun 24, 2019
Agreed, let's close this off for now and keep a very close eye on it.
@andrewpeterprifer, I think it'll be a very easy sell once it gets to stage 3.