Skip to content

Commit

Permalink
🚀 Remove ErrorBoundary, for rsc
Browse files Browse the repository at this point in the history
This is a temporary solution.
If an error occurs in callout parsing, processing must be added
  • Loading branch information
sumin.kim.717 committed Apr 18, 2024
1 parent 3c9c0b9 commit b1f00df
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/obsidian-callouts-markdown/src/core/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
CustomCalloutOptions,
} from '@/types/callout.ts';
import DefaultCallout from '@/core/DefaultCallout.tsx';
import ErrorBoundary from '@/utils/ErrorBoundary.tsx';

/**
* Because users sometimes create new callouts through components or options,
Expand Down Expand Up @@ -52,11 +51,15 @@ const InnerCallout: React.FC<CalloutConfig> = ({
};

const Callout: React.FC<CalloutConfig> = ({...args}) => {
return (
<ErrorBoundary>
<InnerCallout {...args} />
</ErrorBoundary>
);
// return (
// <ErrorBoundary>
// <InnerCallout {...args} />
// </ErrorBoundary>
// );

return(
<InnerCallout {...args} />
)
};

export default Callout;

0 comments on commit b1f00df

Please sign in to comment.