Recoil

Has anybody tried recoil (https://recoiljs.org/) with syncfusion components for state management?

It seems to not like things like tabs etc... 

Any ideas?

Thanks

5 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team September 11, 2020 02:05 PM UTC

Hi Richard, 

Greetings from Syncfusion Support. 

Currently, we are checking the possibilities of the Recoil with EJ2 React Tab and will update further details on September 15, 2020. We would appreciate your valuable patience. 

Regards, 
Balasubramanian S


RC Richard Craig September 11, 2020 02:33 PM UTC

Thanks for taking a look, it does appear to be anything that requires a "content" property, e.g. accordion, tabs, splitter etc.

Richard


BS Balasubramanian Sattanathan Syncfusion Team September 17, 2020 04:41 PM UTC

Hi Richard Craig, 

Thanks for your valuable patience. 

We have validated your reported scenario “it does appear to be anything that requires a "content" property” with React Recoil feature at our Tab component side and we regret to let you know that, currently the content property doesn’t support to render the recoil component as content as you reported. So we would suggest you to render the Tab component by using HTML elements and integrate the recoil component directly to the Tab content as like the below code snippet. Kindly  

<TabComponent id='defaultTab'> 
    <div className="e-tab-header"> 
      <div> Twitter </div> 
      <div> Facebook </div> 
      <div> WhatsApp </div> 
  </div> 
  <div className="e-content"> 
      <div> 
              <CharacterCounter /> 
      </div> 
      <div> 
              Facebook 
      </div> 
      <div> 
              WhatsApp 
      </div> 
  </div> 
</TabComponent> 


Kindly try the above solution and let us know if you need further assistance. 

Regards, 
Balasubramanian S 


Marked as answer

RC Richard Craig September 17, 2020 07:08 PM UTC

Yes, using HTML worked. Thank you
I've always used "content" so a bit of a rework required, but that works fine thanks.


VD Vinitha Devi Murugan Syncfusion Team September 18, 2020 06:55 AM UTC

Hi Richard, 
  
Thanks for your update. 
   
You are most welcome 😊 
 
Regards, 
Vinitha 


Loader.
Up arrow icon