Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Editor: Only show 'Back' button when user came from an editor ca…
…nvas (#58710) * Site Editor: Only show 'Back' button when came from an editor canvas * Check for presense of postType and postId * usePrevious: Update implementation to return previous value, instead of value from previous render See https://www.developerway.com/posts/implementing-advanced-use-previous-hook for a good explanation of the problem. * Revert "usePrevious: Update implementation to return previous value, instead of value from previous render" This reverts commit 8068fe3. * Ignore react-hooks/exhaustive-deps for now Co-authored-by: noisysocks <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: youknowriad <[email protected]>
- Loading branch information