Comments

maximpodorov created an issue. See original summary.

maximpodorov’s picture

Status: Active » Needs review
StatusFileSize
new3.39 KB

The JS code is taken from https://www.drupal.org/project/views_ajax_get module.

maximpodorov’s picture

StatusFileSize
new4.42 KB

The CacheableAjaxResponse class is added.

maximpodorov’s picture

StatusFileSize
new5.36 KB

Block cacheable metadata are added to the response.

maximpodorov’s picture

StatusFileSize
new5.42 KB

More block cacheable metadata are added to the response.

id.aleks’s picture

StatusFileSize
new5.68 KB
new627 bytes

Hello Maxim. Thanks for your work.

We have faced the issue when using the approach from https://www.drupal.org/project/views_ajax_get module. The js code form the mentioned module doens't incude drupalSettings.ajaxPageState.theme and drupalSettings.ajaxPageState.theme_token that may cause incorrect behaviour during the render proccess.

options.data['ajax_page_state[libraries]'] = drupalSettings.ajaxPageState.libraries; has been added to prevent returning already loaded files. See docroot/core/misc/ajax.es6.js

See Rendering does not use correct nondefault theme for anonymous (2938055)

rakshith.thotada’s picture

StatusFileSize
new5.81 KB

Rerolling the patch for the issue https://www.drupal.org/project/facets/issues/3046872 with fix

anand.toshniwal93’s picture

Re-rolling patch from comment 7 against 2.0.6

namisha jadhav’s picture

Re-rolling patch from comment 8 against 2.0.9