Skip to content

Cannot read property 'millisecond' of null #1

@zhaoaixu520

Description

@zhaoaixu520

Cannot read property 'millisecond' of null

你源码写的
/** when current line change */
onCurrentLineChange?: ({
index,
lrcLine,
}: {
index: number;
lrcLine: LrcLine | null;
}) => void;
你的使用方法:
const onCurrentLineChange = useCallback(({ lrcLine: { millisecond, content }, index }) => {
console.log(index, millisecond, content)
}, [])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions