-
-
Notifications
You must be signed in to change notification settings - Fork 25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make changes without formatting diffs
Yeah, sorry about that. I have fixed the formatting issue. |
Hi @ShaMan123 , could you please review the changes, merge the PR and push a release. This would help so many waiting for the fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a github publish action
package.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please undo this change, npm scripts handle semver changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
const { config: configProps } = props as MathTextItemProps<true>; | ||
const config = useMemo(() => ({ ...(configProps || {}), inline }), [inline, configProps]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If config is always passed as optional then you should change MathTextItemProps
it seems.
config?: MathViewProps['config']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MathTextItemProps
extends from MathViewCommonProps
which defines config
as optional, which I guess is intentional? Because if you look at the MathTextItemProps
it optionally extends from MathViewCommonProps
if the generic type is a boolean. Not sure what the purpose is for this optional extension.
export type MathTextItemProps<T extends boolean = boolean> = (T extends true ? Omit<MathViewProps, 'math'> : TextProps) & {
value: string,
isMath: T,
Component?: MathView,
CellRendererComponent?: ElementOrRenderer,
inline?: boolean
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I prefer to spread config: configProp
in line 43 if that is possible.
Sorry for the delay and for not being acquainted with the code anymore.
Actually, I think it is best you fork and I archive this repo with a pinned issue stating so so other devs can write there what they want.
I suggest you fork |
closes #49