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: Silent throw for state sync (fix #512) #674

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Conversation

hugoattal
Copy link
Collaborator

Fix #512

Description

We shouldn't sync computed state properties. However, I didn't find a proper way to detect if a prop is computed or not (IsReadonly doesn't seem to work).

I think it's okay to silently try/catch the setter, as computed should not be synced anyway.

Additional context

If you have a better way of only skipping computed props, that would probably be better.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@hugoattal hugoattal self-assigned this Feb 4, 2024
Copy link

codesandbox bot commented Feb 4, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

stackblitz bot commented Feb 4, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Feb 4, 2024

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit 25145fd
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/65bf80edee903800083e1d26
😎 Deploy Preview https://deploy-preview-674--histoire-examples-svelte3.netlify.app
📱 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 Feb 4, 2024

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit 25145fd
🔍 Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/65bf80ed6e48130008681165
😎 Deploy Preview https://deploy-preview-674--histoire-controls.netlify.app
📱 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 Feb 4, 2024

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit 25145fd
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/65bf80ed023cc30009d70093
😎 Deploy Preview https://deploy-preview-674--histoire-examples-vue3.netlify.app
📱 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 Feb 4, 2024

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit 25145fd
🔍 Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/65bf80edd7547b00085612a6
😎 Deploy Preview https://deploy-preview-674--histoire-site.netlify.app
📱 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.

@hugoattal hugoattal requested a review from Akryum February 4, 2024 12:20
@Akryum Akryum merged commit 4c11f6d into main Feb 4, 2024
21 checks passed
@Akryum Akryum deleted the fix/computed-in-story branch February 4, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants