xstate icon indicating copy to clipboard operation
xstate copied to clipboard

Removed TS troubleshooting sections

Open mattpocock opened this issue 3 years ago • 10 comments

mattpocock avatar Jan 30 '22 13:01 mattpocock

⚠️ No Changeset found

Latest commit: 1f78a07f2571166dd2a4f6ba1c74a6be79491a98

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Jan 30 '22 13:01 changeset-bot[bot]

These troubleshooting sections have been solved by typegen, so we can remove them.

mattpocock avatar Jan 30 '22 13:01 mattpocock

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

ghost avatar Jan 30 '22 13:01 ghost

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1f78a07f2571166dd2a4f6ba1c74a6be79491a98:

Sandbox Source
XState Example Template Configuration
XState React Template Configuration

codesandbox-ci[bot] avatar Jan 30 '22 13:01 codesandbox-ci[bot]

@davidkpiano I was thinking about this, but I'm not sure they are - if the official advice of the library is to 'use typegen', which fixes these problems, then it doesn't make sense to keep around detailed explanations of lesser solutions.

mattpocock avatar Jan 30 '22 15:01 mattpocock

@davidkpiano I was thinking about this, but I'm not sure they are - if the official advice of the library is to 'use typegen', which fixes these problems, then it doesn't make sense to keep around detailed explanations of lesser solutions.

But there currently are situations where using typegen is not possible (different IDEs, CodeSandbox, etc.)

IMO, if the answer to the question "Is it possible for a user to run into these problems under normal usage?" is "yes", then the troubleshooting advice should still stay there. Removing it has, at best, a net-zero benefit for the user, and at worst, it's removed so they will inevitably ask for troubleshooting help instead of referring to the documentation.

Using XState without typegen should still be considered normal usage, at least for now.

davidkpiano avatar Jan 30 '22 15:01 davidkpiano

@davidkpiano Agreed, maybe when we release the CLI we can ditch this.

I do think removing excessive documentation is a positive for the user. I.e. why have things on the docs site if they're not useful?

mattpocock avatar Jan 30 '22 15:01 mattpocock

@davidkpiano Agreed, maybe when we release the CLI we can ditch this.

I do think removing excessive documentation is a positive for the user. I.e. why have things on the docs site if they're not useful?

That's a good discussion point (cc. @laurakalbag) - IMO, troubleshooting information is not read like normal docs. Users typically won't read through an entire troubleshooting section; they're likely going to just find (ctrl-f) the exact problem they're having.

In that case, having more troubleshooting info is much better than having less. Not finding the thing you're trying to troubleshoot is much more frustrating than thinking "there is too much troubleshooting info".

davidkpiano avatar Jan 30 '22 15:01 davidkpiano

@davidkpiano Yes, though maybe we should present it in a different way - i.e. in an accordion or on a separate page.

mattpocock avatar Jan 30 '22 15:01 mattpocock

@davidkpiano Yes, though maybe we should present it in a different way - i.e. in an accordion or on a separate page.

Good idea, maybe <summary><details>?

davidkpiano avatar Jan 30 '22 15:01 davidkpiano