Closed
Description
Reporting issues with Relay
This is more of a "maybe we should provide a link elsewhere" but you cannot use optimisticUpdater
in a TypeScript project as it triggers a compiler panic:
$ relay-compiler
[INFO] querying files to compile...
[INFO] [default] compiling...
thread 'tokio-runtime-worker' panicked at 'Getters and setters with different types are not implemented in typescript. See https://github.com/microsoft/TypeScript/issues/43662', crates/relay-typegen/src/typescript.rs:249:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[ERROR] A thread that the Relay compiler spun up did not shut down gracefully: panic
[ERROR] Compilation failed.
[ERROR] Unable to run relay compiler. Error details:
A thread that the Relay compiler spun up did not shut down gracefully: panic
error Command failed with exit code 1.
Not strictly a problem ( because you can read the thread and see someone from this team saying "hey this thing is blocking relay") but it does mean folks outside of FB can't follow the mutations section
Maybe just a link to the reference to optimisticResponse part of useMutation
's reference?
Metadata
Metadata
Assignees
Labels
No labels