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

[3.0] Rerender issue with array field #6134

Open
sahasprajapati opened this issue Apr 30, 2024 · 0 comments
Open

[3.0] Rerender issue with array field #6134

sahasprajapati opened this issue Apr 30, 2024 · 0 comments
Labels
[possible-bug] Possible bug which hasn't been reproduced yet v3

Comments

@sahasprajapati
Copy link

Link to reproduction

No response

Describe the Bug

Issue with payload array fields. When using a relatively large array fields, the typing becomes erratic and unresponsive. This results in max depth limit reached and crashes the frontend.

image
image

Short video showcasing the issue:
https://vimeo.com/941145591?share=copy

To Reproduce

  1. Create a collection with array
  2. Set Array fields be relatively large (15-20) fields
  3. Type on the name field (used as title), Typing is slow and not responsive
  4. Crash occurs due to max depth limit reached.
const Roles = {
  slug: 'roles',
  admin: {

    useAsTitle: 'name',

    defaultColumns: ['name', 'permissions'],
  },

  fields: [
    { type: 'text', name: 'name', unique: true, required: true },
    {
      type: 'checkbox',
      name: 'isAdmin',
      defaultValue: false,
     
    },
    {
      type: 'array',
      name: 'permissions',
      admin: {},

    
      fields: [
        {
          type: 'row',
          fields: [
            {
              type: 'select',
              name: 'subject',
              options: collectionOptions,
              admin: {
                width: '30%',
              },
            },


          ],
        },

    
      ],
    },
  ],
}

export default Roles

Payload Version

3.0.0-beta.20

Adapters and Plugins

No response

@sahasprajapati sahasprajapati added the [possible-bug] Possible bug which hasn't been reproduced yet label Apr 30, 2024
@PatrikKozak PatrikKozak added the v3 label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[possible-bug] Possible bug which hasn't been reproduced yet v3
Projects
None yet
Development

No branches or pull requests

2 participants