Zelda For example when you hover a mouse on reply_id connecteev . How does it shows a content of that id in popup box. Does it fetch that content from database on mouse hover ? I am learning the implementation of flarum.
clarkwinkelmann Zelda the relevant code can be found here https://github.com/flarum/mentions/blob/master/js/src/forum/addPostMentionPreviews.js The post ID is added as a data-attribute to the mention markup by the TextFormatter. The javascript reads that ID on hover and checks whether the post is already loaded in the store https://github.com/flarum/mentions/blob/master/js/src/forum/addPostMentionPreviews.js#L87 and requests it from the API if needed https://github.com/flarum/mentions/blob/master/js/src/forum/addPostMentionPreviews.js#L90