Hi, in React with gd ui sdk, with gd platform. We ...
# gooddata-ui
Hi, in React with gd ui sdk, with gd platform. We have filters on top every page. When we navigate to a different page, the filters always reload. Any way to avoid that?
Hello @Michael Serres , what version of SDK do you use?
Are you using
Today, we released a new SDK version
with improved AttributeFilter UI (see https://sdk.gooddata.com/gooddata-ui/docs/attribute_filter_component.html ) You can use our caching backend decorator to improve the performance https://sdk.gooddata.com/gooddata-ui/docs/improve_performance.html If you enable the caching, then the reloading should be gone (if you use some front-end routing, eg. react-router). We also introduced new APIs for implementing custom filters, if you are interested: https://sdk.gooddata.com/gooddata-ui/docs/create_custom_attribute_filter.html
Hi, Matyas, yes indeed we're using the AttributeFilter component. Let me upgrade the packages and go through the new docs. Thank you.
@Matyáš Kandl What's the best way to force user can select only one filter value in a filter component?
@Michael Serres I'm just creating an example, I'll send it tomorrow.
🎉 1
Hello @Michael Serres it's still just a pull request, but you can take some inspiration for a single select here: https://github.com/gooddata/gooddata-plugin-examples/pull/25/files#diff-f338ccc9f4d0d6ed945e060d179890952c1b9c36c1b1ddf6d97cc0ce5b53c818R11 Modify it according to your needs, or let me know in case of any questions 🙂
So much appreciated @Matyáš Kandl I will use it to adapt to our use case