-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional components are having rendering issue. #208
Comments
same issue here, any thoughts? |
I've found a workaround:
The issue seems to be that The workaround works by create a shallow copy of the returned object, making it different. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I m tryng this library with functional components. so i am facing the issue something like :
i m draging the element and element is not showing on screen immediately. after hovering on other node i can see the dragged element. i think it has some issue with state after draging its not updating the state immediately. My code is something like this::
export function ReactFlowChart() {
const chartClone = cloneDeep(chartSimple);
const [state, setState] = useState(chartClone);
const stateActions = mapValues(actions, (func: any) => (...args: any) => {
setState(func(...args)); }) as type of actions
return(
<SidebarItem
type="email"
id="id-1"
ports={{
port1: {
id: 'port1',
type: 'top',
properties: {
custom: 'property',
},
},
port2: {
id: 'port1',
type: 'bottom',
properties: {
custom: 'property',
},
},
}}
properties={{
custom: 'property',
inputField: 'name',
}}
>
<EmailIcon style={{ width: 60, height: 60 }} />
Email
<SidebarItem
type="bell"
ports={{
port1: {
id: 'port1',
type: 'bottom',
properties: {
custom: 'property',
},
},
}}
>
<Bell style={{ width: 60, height: 60 }} />
Notification
.
.
.
.
.
.
.>>>>>>>>
can anyone help with this issue
The text was updated successfully, but these errors were encountered: