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
Currently the SSR hook library is part of the sample project: plume-ssr-loader.
To do that, the other hooks plume-http-react-hook-loader and react-hooks-alias must be published as well.
One advantage of that is that it would be possible to add the ESlint rule no-restricted-imports:
{name: 'plume-http-react-hook-loader',importNames: ['useObservableLoader'],message: 'Please use the useSsrObservableLoader version instead.'}
To achieve this, a refactoring should be made in useObservableLoader and in useSsrObservableLoader to accept only one observable. This would make TS typing stronger and it would enable WithDataLoader to accept an array of loaders: this would facilitate to implements complex use cases where for example of loader should not be used if another is already resolved.
The text was updated successfully, but these errors were encountered:
Currently the SSR hook library is part of the sample project:
plume-ssr-loader
.To do that, the other hooks
plume-http-react-hook-loader
andreact-hooks-alias
must be published as well.One advantage of that is that it would be possible to add the ESlint rule
no-restricted-imports
:To achieve this, a refactoring should be made in
useObservableLoader
and inuseSsrObservableLoader
to accept only one observable. This would make TS typing stronger and it would enableWithDataLoader
to accept an array of loaders: this would facilitate to implements complex use cases where for example of loader should not be used if another is already resolved.The text was updated successfully, but these errors were encountered: