I wrote a ReactComponent adaptor for react-archer.
const ReactArcher = require('react-archer');
exports.reactArcherContainer = ReactArcher.ArcherContainer;
foreign import reactArcherContainer :: ReactComponent ArcherContainerProps
which I am rendering by element reactArcherContainer.
It's kind-of working, but my arrows don't re-render correctly after reconciliation. The react-archer docs say :
My arrows don't re-render correctly...
Try using the refreshScreen instance method on your ArcherContainer element. You can access it through the ref of the component.
So here's the refreshScreen instance method:
https://github.com/pierpo/react-archer/blob/a15d84fb8486ce8bc82898f6b042f86ac56c2883/src/ArcherContainer.js#L129
How would I call refreshScreen from Purescript? Is there a way to get a Ref to a ReactComponent instance? Am I even thinking about this the right way?
I wrote a
ReactComponentadaptor for react-archer.which I am rendering by
element reactArcherContainer.It's kind-of working, but my arrows don't re-render correctly after reconciliation. The react-archer docs say :
So here's the
refreshScreeninstance method:https://github.com/pierpo/react-archer/blob/a15d84fb8486ce8bc82898f6b042f86ac56c2883/src/ArcherContainer.js#L129
How would I call
refreshScreenfrom Purescript? Is there a way to get aRefto aReactComponentinstance? Am I even thinking about this the right way?