MyScript / iinkJS

:pencil2: :cloud: iinkJS is the fastest way to integrate rich handwriting recognition features in your webapp.
https://developer.myscript.com
Other
135 stars 18 forks source link

LOST CONNECTION #22

Open liptonzuma opened 1 year ago

liptonzuma commented 1 year ago
Screenshot 2022-12-09 at 3 22 53 AM

How do I get rid of this erros and also the controls does not quite work when working with maths. ` This is my code let editor = editorRef.current;

editor = iink.register(editorRef.current, {
  recognitionParams: {
    type: 'MATH',
    protocol: 'WEBSOCKET',
    apiVersion: 'V4',
    server: {
      scheme: 'https',
      host: 'webdemoapi.myscript.com',
      applicationKey: '515131ab-35fa-411c-bb4d-3917e00faf60',
      hmacKey: '54b2ca8a-6752-469d-87dd-553bb450e9ad',
    },
    iink: {
      math: {
        mimeTypes: [
          'application/x-latex',
          'application/vnd.myscript.jiix',
          'application/mathml+xml',
        ],
      },
      export: {
        jiix: {
          strokes: true,
        },
      },
    },
  },
});

`

Olivier-myscript commented 1 year ago

Dear Liptonzuma, thank you for your post. I am Olivier, from the technical support team at MyScript. Were you able to solve the error message? If not, is it possible to learn more about your use-case? Are you using the iinkJS? What is your environment? Ideally, could we have your project/code? Best regards, Olivier

liptonzuma commented 1 year ago

Yes I did, I noticed the error was occuring as a result of react's strict mode.

Olivier-myscript commented 1 year ago

Ok, thank you for the update. I am glad it is working. Best regards, Olivier