From 68513f169a2cf5893bcb7caf7dcaf1914536677b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 17 Aug 2022 18:13:32 +0200 Subject: [PATCH] changesets: added changeset for default service factories Signed-off-by: Patrik Oldsberg --- .changeset/tame-papayas-protect.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tame-papayas-protect.md diff --git a/.changeset/tame-papayas-protect.md b/.changeset/tame-papayas-protect.md new file mode 100644 index 0000000000..9a0266748a --- /dev/null +++ b/.changeset/tame-papayas-protect.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-plugin-api': patch +--- + +When defining a new `ServiceRef` you can now also include a `defaultFactory`, which will be used to construct instances of the service in case there is no explicit factory defined.