changesets: updated changesets to use withDefaults
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -2,15 +2,14 @@
|
||||
'@backstage/core-app-api': patch
|
||||
---
|
||||
|
||||
Deprecated the defaulting of the `components` options of `createApp`, meaning it will become required in the future. When not passing the required components options a deprecation warning is currently logged, and it will become required in a future release.
|
||||
Deprecated the defaulting of the `components`, `icons` and `themes` options of `createApp`, meaning it will become required in the future. When not passing the required options a deprecation warning is currently logged, and they will become required in a future release.
|
||||
|
||||
The keep the existing components intact, migrate to using `defaultAppComponents` from `@backstage/core-components`:
|
||||
The keep using the default set of options, migrate to using `withDefaults` from `@backstage/core-components`:
|
||||
|
||||
```ts
|
||||
const app = createApp({
|
||||
components: {
|
||||
...defaultAppComponents(),
|
||||
// Place any custom components here
|
||||
},
|
||||
});
|
||||
const app = createApp(
|
||||
withDefaults({
|
||||
// ...
|
||||
}),
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user