Skip to content

Conversation

believer
Copy link

@believer believer commented Feb 7, 2025

Currently, the key is spread onto FitImage. This works, but React doesn't like it and throws an error in development. We can instead move it as a direct prop and the errors go away.

Warning: A props object containing a "key" prop is being spread into JSX:
  let props = {key: someKey, indicator: ..., style: ..., source: ...};
  <FitImage {...props} />
React keys must be passed directly to JSX without using spread:
  let props = {indicator: ..., style: ..., source: ...};
  <FitImage key={someKey} {...props} />
    in Markdown (created by MarkdownText)

@ottob
Copy link

ottob commented Jun 26, 2025

Any chance of this getting merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants