[GH #1476]Source for setCellMeta

Tags: #<Tag:0x00007efc6ddb61c0> #<Tag:0x00007efc6ddb5ef0>

When doing different updates there is normally a “source” I can set to mark the change as external (websocket) which I can then check in the event handler to make sure I dont make an infinite loop between the two browsers.

For some reason setCellMeta() does not seem to have this parameter. Is there a way to track this otherwise? Or do I have to write some some of code to manually ensure this never happens (like checking if the className is already set).

For now I just changed to dispatching the websocket event the same place as I change the className. But perhaps adding the source parameter to setCellMeta() would be a nice addition :slight_smile:

Hi @rene.sinnbeck

That’s a good point. It would be useful to have that parameter in setCellMeta() to be able to track the source. You can create a feature request for such change here: https://github.com/handsontable/handsontable/issues/new/choose

1 Like

Awesome. I have added a feature request :slight_smile:

Great, thank you. I will close this topic then.