<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: React + GraphQL Custom Card &amp;gt; Add editing components in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042580#M76708</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141065"&gt;@Pietro-Poli-&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, you can add editing components in a React + GraphQL custom card. Here’s how you can achieve this,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. You can use controlled form components (like input, select, etc.) in React to enable editing. Each component can hold the values of the B or C objects you want to edit.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. When a field is edited, trigger a mutation via your GraphQL API to update the relevant fields in the B or C objects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. To improve user experience, you can implement optimistic updates so the UI reflects changes immediately, even before the mutation completes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In summary, use React form components for editing and GraphQL mutations to update the data on the backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps, let me know if you need to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://calendly.com/khushboo-pokhriyal/30min?month=2024-08" target="_blank" rel="noopener nofollow noreferrer"&gt;talk&lt;/A&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Khushboo Pokhriyal&lt;/P&gt;&lt;P&gt;Growth &amp;amp; Operations&lt;/P&gt;&lt;P&gt;GroRapid Labs&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/khushboopokhriyal" target="_blank" rel="noopener nofollow noreferrer"&gt;LinkedIn |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="tel:9315044754" target="_blank" rel="noopener nofollow noreferrer"&gt;9315044754 |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="mailto:khushboo.pokhriyal@grorapid.com" target="_blank" rel="noopener nofollow noreferrer"&gt;Email |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://www.grorapidlabs.com/" target="_blank" rel="noopener nofollow noreferrer"&gt;Website&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 12:06:38 GMT</pubDate>
    <dc:creator>KhushbooP11</dc:creator>
    <dc:date>2024-09-18T12:06:38Z</dc:date>
    <item>
      <title>React + GraphQL Custom Card &gt; Add editing components</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042064#M76668</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I'm working on a react + graphQl Custom Card.&lt;BR /&gt;I've 3 different object related A -&amp;gt; B and B -&amp;gt; C&lt;BR /&gt;Into the view I attached I can list all B objects related do A and all C objects related to each B object.&lt;BR /&gt;&lt;BR /&gt;Now I need to edit some fields, in B objects and C objects.&lt;BR /&gt;I would like to use a component like one with green arrow.&lt;BR /&gt;Is it possible?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 13:55:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042064#M76668</guid>
      <dc:creator>Pietro-Poli-</dc:creator>
      <dc:date>2024-09-17T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: React + GraphQL Custom Card &gt; Add editing components</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042580#M76708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141065"&gt;@Pietro-Poli-&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, you can add editing components in a React + GraphQL custom card. Here’s how you can achieve this,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. You can use controlled form components (like input, select, etc.) in React to enable editing. Each component can hold the values of the B or C objects you want to edit.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. When a field is edited, trigger a mutation via your GraphQL API to update the relevant fields in the B or C objects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. To improve user experience, you can implement optimistic updates so the UI reflects changes immediately, even before the mutation completes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In summary, use React form components for editing and GraphQL mutations to update the data on the backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps, let me know if you need to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://calendly.com/khushboo-pokhriyal/30min?month=2024-08" target="_blank" rel="noopener nofollow noreferrer"&gt;talk&lt;/A&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Khushboo Pokhriyal&lt;/P&gt;&lt;P&gt;Growth &amp;amp; Operations&lt;/P&gt;&lt;P&gt;GroRapid Labs&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/khushboopokhriyal" target="_blank" rel="noopener nofollow noreferrer"&gt;LinkedIn |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="tel:9315044754" target="_blank" rel="noopener nofollow noreferrer"&gt;9315044754 |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="mailto:khushboo.pokhriyal@grorapid.com" target="_blank" rel="noopener nofollow noreferrer"&gt;Email |&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://www.grorapidlabs.com/" target="_blank" rel="noopener nofollow noreferrer"&gt;Website&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:06:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042580#M76708</guid>
      <dc:creator>KhushbooP11</dc:creator>
      <dc:date>2024-09-18T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: React + GraphQL Custom Card &gt; Add editing components</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042812#M76725</link>
      <description>&lt;P&gt;Hi Khushoboo,&lt;BR /&gt;today I've found these source:&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/platform/ui-components/crm-data-components" target="_blank"&gt;https://developers.hubspot.com/docs/platform/ui-components/crm-data-components&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/platform/ui-components/crm-action-components" target="_blank"&gt;https://developers.hubspot.com/docs/platform/ui-components/crm-action-components&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I've tested them and &lt;EM&gt;et voilà&amp;nbsp;&lt;/EM&gt; it works like I want.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 19:19:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/React-GraphQL-Custom-Card-gt-Add-editing-components/m-p/1042812#M76725</guid>
      <dc:creator>Pietro-Poli-</dc:creator>
      <dc:date>2024-09-18T19:19:41Z</dc:date>
    </item>
  </channel>
</rss>

