ReqoreLink forwards the isText styling prop to a custom 'as' element (React warning with react-router's Link)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Start with ReqoreLink and trace how its isText styling prop is forwarded when a custom as element is used; the issue does not name the implementation or test files. Check the existing tests for custom as elements and run them before making a change. Done means styled-only props such as isText no longer reach the custom element or its DOM output, and the React warning is covered by a regression test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
ReqoreLink with a custom element, e.g. react-router's link:
<ReqoreLink as={Link} to="/blog/some-post" underline={false}>Title</ReqoreLink>
passes Reqore's internal isText styling prop through to the custom element. react-router's Link spreads unknown props onto its <a>, so React warns on every render:
Warning: React does not recognize the `isText` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `istext` instead.
Seen with @qoretechnologies/reqore 0.77.5 (beta), React 18, react-router-dom 6.
What the landing page needs
The qorus.cloud post cards (src/components/blog/PostCard.tsx in qorus-saas-landing) make the card's title a router link with ReqoreLink as={Link}, as the prop's docs suggest. isText (and any other styled-only prop) should be filtered with shouldForwardProp / a transient $ prop before it reaches a custom as element.
Meanwhile
The landing page wraps react-router's Link in a small adapter that drops isText, marked TODO(reqore) with this issue; it goes away once Reqore filters the prop.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4
- Forks
- 0
- Merge medio
- 16 h 28 min
- PR fusionados (30 d)
- 9
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de qoretechnologies/reqore
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
qoretechnologies/reqore#725 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
qoretechnologies/reqore#711 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
qoretechnologies/reqore#675 ·
Los mantenedores suelen responder en 1 día
-
Checkbox: a long description pushes the control out of its container — the label column cannot shrinkPosiblemente ocupada @Foxhoundn la tomó hace 49 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
qoretechnologies/reqore#662 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
qoretechnologies/reqore#745 ·
Los mantenedores suelen responder en 1 día
Todos los issues de qoretechnologies/reqore
Issues similares
-
documentation Entwickler
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:frontend bug ci-test level:low priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
skytuhua-org/Gen-V1#2974 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
area: cli area: core priority: P3 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
appandflow/stim#6736 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
naomiaro/waveform-playlist#973 ·
Los mantenedores suelen responder en 1 día