You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, it looks like the type is incorrect and from the docs it is not clear which hook can return what.
Essentially we do not know if we can return an observable that will be auto unsubscribed or if we cannot return anything.
Formly version: 6.1.8
The text was updated successfully, but these errors were encountered:
@aitboudad I could try but there is not enough info on how the architecture hangs together, what the parts are, etc etc.
Last time I tried to provide a simple solution that had no impact on architecture it was effectively rewritten as I clearly did not have any visibility on how things hang together and what would be alternative preferable approaches.
For something like this that affects public type declarations and changes in the API a lot more is required than just a fix.
How can I know if what I think is appropriate is acceptable?
There is just not enough documentation on the parts of the project so that someone can realistically provide good solutions.
Is there a way we can communicate more interactively? a chat of sorts?
According to this the hook functions return
void
https://github.com/ngx-formly/ngx-formly/blob/bf89337a640749d01dfcf6b1ecc286adc7eb3c79/src/core/src/lib/models/fieldconfig.ts#LL243C55-L243C55
export type FormlyHookFn = (field: FormlyFieldConfig) => void;
ngx-formly/src/core/src/lib/models/fieldconfig.ts
Line 246 in bf89337
However, the below suggest otherwise
#2238 (comment)
https://github.com/ngx-formly/ngx-formly/releases/tag/v5.7.0
ngx-formly/demo/src/app/examples/advanced/repeating-section-input/app.component.ts
Line 31 in bf89337
So, it looks like the type is incorrect and from the docs it is not clear which hook can return what.
Essentially we do not know if we can return an observable that will be auto unsubscribed or if we cannot return anything.
The text was updated successfully, but these errors were encountered: