Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

LOST CONNECTION #22

Open
liptonzuma opened this issue Dec 9, 2022 · 3 comments
Open

LOST CONNECTION #22

liptonzuma opened this issue Dec 9, 2022 · 3 comments

Comments

@liptonzuma
Copy link

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
Copy link

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
Copy link
Author

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

@Olivier-myscript
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants