cgballance commented on issue #310:
URL: https://github.com/apache/camel-karavan/issues/310#issuecomment-1097145048

   tried latest, still an issue.  did some research on this.  
   karavan-vscode/webview/App.tsx::onMessage will get called with a 
message.command of 'kamelets' or 'components' or others(unimportant for this 
issue). They will call KameletApi.saveKamelets(...) or 
ComponentApi.saveComponents(...) over in karavan-core.
   These methods will do a push onto the respective arrays, thereby just piling 
on if the events are triggered.  There are similar methods for single additions 
that appear to be in non-vscode.
   honestly, i'd rename these methods to something more understandable.  I'd 
have
   ComponentApi.setComponents(...)  meaning set to the provided array.
   ComponentApi.addComponent(...) meaning append to the existing array.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to