clutch-creator / clutch

The Next Website Builder for High-Performance Marketing
https://clutch.io
MIT License
50 stars 4 forks source link

Props and Vars are not selectable #40

Open daprieu opened 1 year ago

daprieu commented 1 year ago

How to reproduce

In a project where data is being returned from the data function on a page

  1. add a text component
  2. switch text prop to variable
  3. Props will show for half a second and then disappear

Describe the bug

Variable bind and code bind are almost unusable as I can not select the data flowing in. I have to know the shape of my data and manually write it.

Expected behavior

data flowing in should persist in the props and vars section of the code bind picker

Operating System

macOS 13.5

Clutch Version

Desktop: 1.204.0 | Interface: v1.205.11

Other

https://github.com/clutch-creator/clutch/assets/57027607/1c88c5c4-2751-4575-928f-f9a3f642613d

andressaroberts commented 1 year ago

Hey, @daprieu . Can you check if the problem still persists after this update?

You need to update @clutch-creator/bridge to version 7.0.1 . If for some reason the picker is still acting up OR you want to workaround and have the fix in production already, you need to disable react strict mode. To do this, open the project next.config.js and add the flag: reactStrictMode: false and reopen the project.