Drupal.behaviors.recentlyReadInsert runs multiple times.

Created on 22 June 2022, about 3 years ago
Updated 1 July 2025, 4 days ago

Problem/Motivation

Drupal.behaviors.recentlyReadInsert post request is ran multiple times.

Steps to reproduce

Have recently read entities on the page and check the network requests.

Proposed resolution

Add a .once to the js.

I'll fork and submit.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.2

Component

Code

Created by

🇺🇸United States kazajhodo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024