AbstractJavaScriptComponent and getState

I’m using Vaadin 8.0.6. I’m creating an addon for a large javascript library.

I believe certain issues have been fixed in Vaadin 8 when you use the AbstractJavaScriptComponent.
For example only the diff state is sent over the wire when the state changes (in line with standard components) whereas in Vaadin 7 it was always the full state even when nothing had changed.

My question is, how do I check what part of the state has changed in the javascript connector code?

I’m integrating quite a large JS library. I have 2 approaches

  1. is to wrap the JS library as a GWT widget and then create a standard AbstractComponent, or…
  2. create a AbstractJavaScriptComponent and call the javascript library directly

I’m starting to think that I need to go the GWT route since I will then get all the standard functionally Vaadin provides like informing you what has changed in the state. Any insights would be appreciated?

Is there any other standard behaviour you do not get when you create your own AbstractJavaScriptComponent?