You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When sortOptions prop is passed to ReactiveList it fails with server-side rendering. The error traces to "only used for SSR" - commented code block here.
Uncaught (in promise) TypeError: Cannot read property 'sortOptionIndex' of undefined
Failing example with sortOptions prop: switch to the sorting branch where an array or sorting options was added
Reactivesearch version: 3.0.0-rc.15
Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Anything else:
This example is based on the following issue originally resolved with reactivesearch v2: gatsbyjs/gatsby#10556
Relevant stacktrace:
ReactiveList.js:507 Uncaught (in promise) TypeError: Cannot read property 'sortOptionIndex' of undefined
at Object../node_modules/@appbaseio/reactivesearch/lib/components/result/ReactiveList.js.ReactiveList.generateQueryOptions (ReactiveList.js:507)
at index.js:130
at Array.forEach ()
at index.js:103
at new Promise ()
at initReactivesearch (index.js:80)
at SearchReactive._callee$ (SearchReactive.js:63)
at tryCatch (runtime.js:45)
...
The text was updated successfully, but these errors were encountered:
Issue Type: bug
Platform: Web
Description:
When
sortOptions
prop is passed toReactiveList
it fails with server-side rendering. The error traces to "only used for SSR" - commented code block here.options.sort = [(_ref10 = {}, _ref10[props.sortOptions[undefined.sortOptionIndex].dataField] =
Screenshots:
Minimal reproduction of the problem with instructions:
Working example without
sortOptions
prop (master
-branch):https://github.com/multidis/reactivesearch_gatsby
Failing example with
sortOptions
prop: switch to thesorting
branch where an array or sorting options was addedReactivesearch version: 3.0.0-rc.15
Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Anything else:
This example is based on the following issue originally resolved with reactivesearch v2:
gatsbyjs/gatsby#10556
Relevant stacktrace:
The text was updated successfully, but these errors were encountered: