MyScript / iinkJS

:pencil2: :cloud: iinkJS is the fastest way to integrate rich handwriting recognition features in your webapp.

Home Page:https://developer.myscript.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LOST CONNECTION

liptonzuma opened this issue · comments

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,
        },
      },
    },
  },
});

`

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

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

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