Skip to content
Discussion options

You must be logged in to vote

Ah sorry I confused getQuery (gets all the parameters) with getQueryParams (get the non-"managed" parameters). To get access to the helper, you need to use a custom widget though, so the code becomes this: https://codesandbox.io/p/devbox/exporting-forked-3rp596

function connectExport(renderFn) {
  return (widgetParams = {}) => ({
    $$type: 'custom.export',
    init(initOptions) {
      renderFn(
        {
          ...this.getWidgetRenderState(initOptions),
          instantSearchInstance: initOptions.instantSearchInstance,
        },
        true
      );
    },
    render(renderOptions) {
      renderFn(
        {
          ...this.getWidgetRenderState(renderOptions),
          instan…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@callmekatootie
Comment options

@callmekatootie
Comment options

@callmekatootie
Comment options

@Haroenv
Comment options

Answer selected by callmekatootie
@callmekatootie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants