Skip to content
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

fix(api-service): variable not removed from preview #7422

Draft
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Jan 3, 2025

What changed? Why was the change needed?

We want to preserve variable value when switching tabs (ref) but remove the variable when its removed in the editor.

Copy link

linear bot commented Jan 3, 2025

Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit ae0fef7
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6777b3ad2f064f0008ecb3ee
😎 Deploy Preview https://deploy-preview-7422.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit ae0fef7
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/6777b3ad3043530008f052ff
😎 Deploy Preview https://deploy-preview-7422.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ChmaraX ChmaraX changed the title fix(api): variable not removed from preview fix(api-service): variable not removed from preview Jan 3, 2025
Copy link
Contributor

@djabarovgeorge djabarovgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion we need to remove the state management in between tab clicks, this should solve the stale variable in the "Configure Preview"

Comment on lines +177 to +178
source: Record<string, unknown>,
target: Record<string, unknown>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤓 nitpick (non-blocking): ‏ Maybe we can change the order here, as far as i remember the first value is the target usually.

Copy link
Contributor

@djabarovgeorge djabarovgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants