Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated requests to API without pagination parameters #508

Open
byfareska opened this issue Oct 1, 2023 · 0 comments
Open

Duplicated requests to API without pagination parameters #508

byfareska opened this issue Oct 1, 2023 · 0 comments

Comments

@byfareska
Copy link

byfareska commented Oct 1, 2023

API Platform version(s) affected: 3.1.15, react admin 3.4.4

Description
Duplicated requests to API without pagination parameters on page load, menu usage or pagination.

How to reproduce
I've just pasted the index.js file from docs

import React from 'react';
import ReactDOM from 'react-dom';
import {
    AdminGuesser,
    hydraDataProvider,
    hydraSchemaAnalyzer,
} from '@api-platform/admin';

// Use your custom data provider or resource schema analyzer
// Hydra:
const dataProvider = hydraDataProvider({ entrypoint: 'http://localhost:63305' });
const schemaAnalyzer = hydraSchemaAnalyzer();
// OpenAPI:

const Admin = () => (
    <AdminGuesser
        dataProvider={dataProvider}
        schemaAnalyzer={schemaAnalyzer}
    />
);

ReactDOM.render(<Admin />, document.getElementById('root'));

Edit: the problem is also visible on official app skeleton https://github.com/api-platform/api-platform/tree/v3.1.14
Additional Context
You can see these requests on this video: https://streamable.com/1pfy9s

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

No branches or pull requests

1 participant