Skip to content

Commit

Permalink
chore(lint): revert clientOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Oct 21, 2024
1 parent 81e6f66 commit 58ad664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vike-solid/helpers/clientOnly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function clientOnly<T extends Component<any>>(fn: () => Promise<{ default

const [comp, setComp] = createSignal<T>();
fn().then((m) => setComp(() => ("default" in m ? m.default : m)));
// eslint-disable-next-line solid/reactivity
return (props: ComponentProps<T>) => {
let Comp: T | undefined;
let m: boolean;
Expand Down

0 comments on commit 58ad664

Please sign in to comment.