#How to use createBackendPlugin with createServiceFactory from same plugin?

4 messages · Page 1 of 1 (latest)

stray radish
#

I have a backend plugin that depends on a service. I'd like to use a single backend.add() call so how would I export the service from the same backend plugin?

queen orbit
#

One option is to use the defaultFactory prop when creating your service-ref to attach a default factory to it

stray radish
#

Worked thanks!