question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search bar in UI Admin List view doesn't work

See original GitHub issue

Bug report

Describe the bug

The Search component in the UI Admin List View is unresponsive. When user attempts to interact with it, React throws the following error:

Warning: Cannot update a component (`Search`) while rendering a different component (`Search`).
To locate the bad setState() call inside `Search`, follow the stack trace as described in
https://fb.me/setstate-in-render

System information

This happens on MacOS Catalina Chrome. Current Keystone installs look like this

"@keystonejs/adapter-mongoose": "^5.2.1",
"@keystonejs/app-admin-ui": "^5.9.2",
"@keystonejs/app-graphql": "^5.1.2",
"@keystonejs/auth-password": "^5.1.2",
"@keystonejs/fields": "^7.0.0",
"@keystonejs/keystone": "^6.0.1",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Vultrazcommented, Apr 1, 2020

Ok, apparently the second warning (“Cannot update a component from inside…”) was introduced in React 16.13.0. I’ve tracked it down to the useQuery call in useListQuery… Investigating. Turns out it’s a separate issue from the Tooltip one, so leave this open for the Search problem.

0reactions
Vultrazcommented, Apr 2, 2020

The more detailed error with React 16.13.1. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Search Bar functionality in a List View?
If you are still stuck, try removed all the filter code in the adapter. Then in PersonInfo class, override toString() method to return...
Read more >
Search List Views in Lightning Experience - Salesforce Help
You can search for records in a list view using the list view search box. Click the search box or use the keyboard...
Read more >
[Meta] Admin UI Searching · Issue #2692 · keystonejs/keystone
"simple search"); Search bar in UI Admin List view doesn't work #2613 Search bar in UI Admin List view doesn't work
Read more >
Configure the list layout - Product Documentation | ServiceNow
You can configure a list to choose which columns appear in a list, create list views, and create fields on the table.
Read more >
Fix site display issues with Compatibility View in Internet ...
Sometimes websites don't look like you expect them to—images might not appear, menus might be out of place, and text could be jumbled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found