onLogin of TinacmsGithubProvider is no longer called when cms enabled.
Just setup next.js + github exactly as it is in the guide: https://tina.io/guides/nextjs/github/initial-setup/
Click to "Edit this page" button
The base branch should be checkout, the preview mode should be activated
Preview mode is not activated and the branch is not checked out.
MacOS
โโโ UNMET PEER DEPENDENCY @tinacms/core@^0.29.0
โโโ UNMET PEER DEPENDENCY @tinacms/fields@^0.29.0
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY @tinacms/[email protected]
โ โโโ UNMET PEER DEPENDENCY @tinacms/fields@^0.29.0
โโโฌ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โโโฌ [email protected]
โโโฌ [email protected]
โ โโโ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโ @tinacms/[email protected]
โ โโโ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโ @tinacms/[email protected]
โ โโโ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
โ โโโฌ @tinacms/[email protected]
| Tool | Version |
| ------- | ------- |
| browser | chrome |
| os | macos |
| node | v12.18.3 |
| npm | 6.14.6 |
I believe that this is a degradation because of this commit: https://github.com/tinacms/tinacms/commit/6580c8afa247e3d6a1beb9d7e4967b45c130fa1e
TinacmsGithubProvider calls github.checkout on a success authorization of a base branch with gihtub.branchName, and then checkout compares it with this.branchName and does nothing, which produces the bug.
+1 this has been very confusing trying to spin up a new project locally.
EDIT: confirmed that updating TinaCMS packages to "0.33.0" fixes the issue I was seeing where clicking "Edit this site" doesn't set the TinaCMS object = enabled, and doesn't set the proper cookies for preview mode.
@all-contributors add @c58 for bugs
@dwalkr
I've put up a pull request to add @c58! :tada:
Most helpful comment
+1 this has been very confusing trying to spin up a new project locally.
EDIT: confirmed that updating TinaCMS packages to "0.33.0" fixes the issue I was seeing where clicking "Edit this site" doesn't set the TinaCMS object = enabled, and doesn't set the proper cookies for preview mode.