Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Table Search


Im having an error over the user-management search (bootstrap & react version).

The search freeze and collapse all the application. Try the search input over the "Users Lists"

https://preview.keenthemes.com/metronic8/react/demo1/apps/user-management/users


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi

The issue is in UsersListSearchComponent.tsx on line 19. Spreading initialQueryState resets pagination, filters, and other query state, causing a loop and freeze.

Here is the workaround:
Open src/app/modules/apps/user-management/users-list/components/header/UsersListSearchComponent.tsx

Replace lines 16-24 with:

// Effect for API call
useEffect(
() => {
// Only update search and reset page to 1, preserve other query state
updateState({search: debouncedSearchTerm || "", page: 1})
},


Removes ...initialQueryState to avoid resetting the entire state
Updates only the search property
Resets page to 1 when searching (common UX pattern)
Preserves filters, sorting, and other query parameters


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(