API schema is undefined React Admin with Hydra problem with introspect
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- next.js, react, typescript
Direzione di ricerca
Iniziate da src/hydra/dataProvider.ts e riproducete la configurazione segnalata usando Next.js 13.4.19, React Admin e un backend Hydra, concentrandovi sul risultato dell’introspezione e su apiSchema undefined. Il lavoro è completato quando i dati dell’API vengono caricati senza l’hack, i campi chips sono compilati e la modifica non fa scomparire i dati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
We recently decided to use React Admin with API Platform for our internal app. React Admin linked your repo in their documentation, with a comment that this is a suitable dataProvider for our set up. Unfortunately, it doesn’t work as we hoped, and I wonder why.
Let me guide you through our case.
We have configured React admin with Next.js (v 13.4.19) with Hydra (JSON-LD) as the backend.
- At first, we implemented dataProvider as it is, regarding to the repo linked in the documentation:
https://github.com/api-platform/admin/blob/main/src/hydra/dataProvider.ts
but we were not able to display the API data at all, with the error as on the screen nr 1
- Then mostly for debugging purposes, we have added a hacky solution in the code to make apiSchema optional: screen nr 2 and we were able to display some data and even create some views as usersList, singleUser, userEdit but not everything worked as one might expect. Check out the chips fields it remains empty: screen nr 3.
- Then we tried to edit the user in edit view: screen 4
- After the editing for few seconds you can see the changes on usersList, even the chips fields work: screen 5
- And then it all disappears with an error message: screen 6
From what we have observed, there is an introspection issue and apiSchema returns an undefined value when we try to log it.
- Lingua principale
- TypeScript
- Stelle
- 516
- Fork
- 134
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di api-platform/admin
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
api-platform/admin#616 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 64/100
api-platform/admin#660 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
api-platform/admin#659 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
api-platform/admin#631 · 6 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
api-platform/admin#626 · 1 commento · 1 reazione ·
Tutte le issue di api-platform/admin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/inspector#2458 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·