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

Update tsconfig to not crash tsserver with visionos files #100

Closed
wants to merge 1 commit into from
Closed

Update tsconfig to not crash tsserver with visionos files #100

wants to merge 1 commit into from

Conversation

bartlomein
Copy link

Summary:

TSserver is crashing while opening the repo as discussed in this issue

Changelog:

Test Plan:

Open the repo with vscode, tsserver should no longer crash

@bartlomein bartlomein changed the title update tsconfig to not crash tsserver with visionos files Update tsconfig to not crash tsserver with visionos files Feb 7, 2024
@okwasniewski
Copy link
Member

okwasniewski commented Feb 7, 2024

@bartlomein Thanks for the PR! Unfortunately, it's not that simple - we can't change this package as we are reusing it from the core repo (https://www.npmjs.com/package/@react-native/typescript-config).

Edit: I misread the file you changed (you just replaced it's content). I would prefer to keep reusing the upstream implementation of this

But if you are willing to contribute to the core React native repo, I think adding something like this:

"exclude": [
    "**/Pods/**"
  ]

Should do the trick for every OOT platform that's building Hermes from the source. Theoretically, you can also build Hermes from a specified commit when using a stable version of React Native so I think it's valid.

@bartlomein
Copy link
Author

Ahh ok makes sense. Sounds good, will set it up there! Thanks!

@bartlomein bartlomein closed this Feb 7, 2024
okwasniewski pushed a commit that referenced this pull request Nov 27, 2024
…acebook#46702)

Summary:
Pull Request resolved: facebook#46702

In facebook#44188, we've started combining multiple transactions in a single transaction, to meet React's atomicity requirements, while also dealing with the constraints of Android's Fabric implementation.

This revealed a bug where in some scenarios (especially when using transitions), a node may be deleted and created during the same transaction. The current implementation of FabricMountingManager assumes it can safely reorder some operations, which it does to optimize the size of IntBufferBatch mount items. This is however incorrect and unsafe when multiple transactions are merged.

**Example:**

Differentiator output:

```
# Transaction 1
Remove #100 from #11
Delete #100

# Transaction 2
Create #100
Insert #100 into #11
```
FabricMountingManager output
```
Remove #100 from #11
Insert #100 into #11
Delete #100
```

Note that the create action is also skipped, because we only update `allocatedViewTags` after processing all mutations, leading FabricMountingManager to assume creation is not required.

This leads to an invalid state in SurfaceMountingManager, which will be surfaced as a crash in `getViewState` on the next mutation that interacts with these views.

Changelog: [Android][Fixed] Fix crash in getViewState when using suspense fallbacks.

Reviewed By: sammy-SC

Differential Revision: D63148523

fbshipit-source-id: 07ae26b2f7b7eba1b9784041dd3059b0956c035e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants