ltijs icon indicating copy to clipboard operation
ltijs copied to clipboard

Platform identifier in onDynamicRegistration

Open PanopticaRising opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. When a dynamic registration comes through, I want to be able to create records that reference some unique identifier in the recently created Platform.

Describe the solution you'd like The call to DynamicRegistration.register could pass back the result object used in registered.platformId(), to give access to the newly created record to the caller.

Describe alternatives you've considered Manual registrations is a sufficient workaround, but dynamic registration is way cooler.

Additional context Nothing else!

PanopticaRising avatar May 14 '21 03:05 PanopticaRising

Hello @PanopticaRising! I really like your suggestion. I am working right now at releasing a new version of Ltijs 6.0.0 with some breaking changes and functionalities. The change you are requesting would fit better in the new release as it changes how the DynamicRegistration class is used.

The new version should be out in the next two weeks. I'll make sure to include this change.

Cvmcosta avatar May 14 '21 19:05 Cvmcosta

Thanks! I figured it would be, I've been trying to follow along with your changes. I'll be sure to check out v6.0.0 when it drops, and maybe contribute some typings.

PanopticaRising avatar May 14 '21 19:05 PanopticaRising