chore: added some helper error message for removal of the Component param
Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -267,6 +267,7 @@ export const AppRootWrapperBlueprint: ExtensionBlueprint<{
|
||||
kind: 'app-root-wrapper';
|
||||
name: undefined;
|
||||
params: {
|
||||
Component?: [error: 'Use the `component` parameter instead'];
|
||||
component: (props: { children: ReactNode }) => JSX.Element | null;
|
||||
};
|
||||
output: ConfigurableExtensionDataRef<
|
||||
@@ -1719,6 +1720,7 @@ export const RouterBlueprint: ExtensionBlueprint<{
|
||||
kind: 'app-router-component';
|
||||
name: undefined;
|
||||
params: {
|
||||
Component?: [error: 'Use the `component` parameter instead'];
|
||||
component: (props: { children: ReactNode }) => JSX.Element | null;
|
||||
};
|
||||
output: ConfigurableExtensionDataRef<
|
||||
|
||||
@@ -36,6 +36,8 @@ export const AppRootWrapperBlueprint = createExtensionBlueprint({
|
||||
component: componentDataRef,
|
||||
},
|
||||
*factory(params: {
|
||||
/** @deprecated use the `component` parameter instead */
|
||||
Component?: [error: 'Use the `component` parameter instead'];
|
||||
component: (props: { children: ReactNode }) => JSX.Element | null;
|
||||
}) {
|
||||
yield componentDataRef(params.component);
|
||||
|
||||
@@ -29,11 +29,11 @@ export const RouterBlueprint = createExtensionBlueprint({
|
||||
dataRefs: {
|
||||
component: componentDataRef,
|
||||
},
|
||||
*factory({
|
||||
component,
|
||||
}: {
|
||||
*factory(params: {
|
||||
/** @deprecated use the `component` parameter instead */
|
||||
Component?: [error: 'Use the `component` parameter instead'];
|
||||
component: (props: { children: ReactNode }) => JSX.Element | null;
|
||||
}) {
|
||||
yield componentDataRef(component);
|
||||
yield componentDataRef(params.component);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user