appbaseio / appbaseio/reactivesearch
transformRequest doesn't work in SSR if graphQlUrl isn't defined
Open
bug
- Dominant language
- JavaScript
- Stars
- 4.9k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
**Affected Projects**
React
**Library Version:** x.y.z
3.11.2
**Describe the bug**
`transformRequest` doesn't work in SSR if graphQlUrl isn't defined. Hence SSR gives a different set of results and client side re-rendering is performed.
**To Reproduce**
Steps to reproduce the behavior:
Simply provide a `transformRequest` function to `initReactiveSearch` but don't provide `graphQlUrl`.
**Expected behavior**
`transformRequest` should be executed on the `finalQuery` regardless of presence of `graphQlUrl`.
Contributor guide
Assessment
This issue has not been assessed yet.