Skip to content

React Router devtools triggers algoliasearch client api error #223

@orjanmjelde-kantega

Description

@orjanmjelde-kantega

Hi,

we have a react-router project where we have included react-router-devtools. Lately devtools seems to trigger an api error in the algoliasearch client. When using the algolia search client, the following error is triggered:

ERROR Unknown parameter: data-rrdt-source <ref *1> ApiError: Unknown parameter: data-rrdt-source at deserializeFailure (file:////node_modules/@algolia/client-common/src/transporter/helpers.ts:91:12) at retry (file:////node_modules/@algolia/client-common/src/transporter/createTransporter.ts:194:13) at processTicksAndRejections (node:internal/process/task_queues:105:5) { stackTrace: [ { request: [Object], response: [Object], host: [Object], triesLeft: 3 } ], status: 400, error: [Circular *1] }

The parameter data-rrdt-source is apparently added by the devtools, and it has worked nicely up until recently.

So, I was wondering. Has the devtool changed recently to trigger this error?
Is there a way to blacklist/exclude the algolia search client from injection?

Here are our dependencies from package.json:
"react-router": "^7.9.3",
"react-router-devtools": "^5.1.3",
"algoliasearch": "^5.39.0",

I have been in contact with the algolia people through the following ticket (algolia/api-clients-automation#5441), but nothing came of it.

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions