Commit 1048a43
ref: Use optional chaining where possible (#14954)
This PR updates our code to use optional chaining, where possible.
This was mostly search-and-replace by `xx && xx.` regex, so there may
def. be some remaining places, but this should cover a good amount of
usage.
---------
Co-authored-by: Lukas Stracke <[email protected]>1 parent 6779dfe commit 1048a43
File tree
123 files changed
+216
-232
lines changed- dev-packages
- browser-integration-tests
- loader-suites/loader/noOnLoad/customOnErrorHandler
- suites
- integrations/featureFlags/launchdarkly
- old-sdk-interop
- acs/getCurrentScope
- hub/isOlderThan
- e2e-tests/test-applications
- create-remix-app-express-legacy/app/routes
- create-remix-app-express-vite-dev/app/routes
- create-remix-app-express/app/routes
- create-remix-app-legacy/app/routes
- create-remix-app-v2-legacy/app/routes
- create-remix-app-v2/app/routes
- create-remix-app/app/routes
- ember-classic/app/initializers
- packages
- angular
- src
- astro/src/server
- aws-serverless/src
- browser-utils/src
- instrument
- metrics
- web-vitals/lib
- browser
- src
- integrations
- profiling
- tracing
- utils
- test
- bun/src/integrations
- cloudflare/src/integrations
- core/src
- integrations
- tracing
- transports
- utils-hoist
- instrument
- vendor
- utils
- deno/src/integrations
- ember/addon/instance-initializers
- feedback/src
- core
- modal
- components
- screenshot/components
- nestjs/src
- nextjs/src
- client/routing
- common/pages-router-instrumentation
- nitro-utils/src/rollupPlugins
- node
- src
- integrations/anr
- utils
- test/transports
- nuxt/src
- runtime
- opentelemetry/src
- utils
- react/src
- remix
- src/client
- test/integration/common/routes
- replay-internal
- src
- coreHandlers
- util
- util
- test/integration
- solidstart/src/server
- solid/src
- sveltekit/src
- client
- server
- vercel-edge/src/integrations
- vue/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
123 files changed
+216
-232
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/routes/navigate.tsx
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
0 commit comments