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: Pages mutation on component mount #3230

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

Palanikannan1437
Copy link
Collaborator

@Palanikannan1437 Palanikannan1437 commented Dec 22, 2023

Description

  • Set the revalidate option to false in the commonSwrOptions object to fix issues with Locking, Archiving, etc.
  • Add an useEffect hook that calls the mutatePageDetails function with specific options as temporary fix to update cache.
  • Inside the useEffect hook, set revalidate to true, populateCache to true to update cache on component mount and define a rollback function for error handling.
  • Added code support for `` markdown syntax

…lsPage component

- Set the `revalidate` option to `false` in the `commonSwrOptions` object.
- Add an `useEffect` hook that calls the `mutatePageDetails` function with specific options.
- Inside the `useEffect` hook, set `revalidate` to `true`, `populateCache` to `true`, and define a rollback function for error handling.
- If an error occurs during the rollback, display an error alert message using the `actionCompleteAlert` function.
- In the `updatePage` function, ensure that `workspaceSlug`, `projectId`, and `pageId` are all defined before proceeding.
@Palanikannan1437 Palanikannan1437 self-assigned this Dec 22, 2023
@Palanikannan1437 Palanikannan1437 changed the title 🔧 fix: Update revalidate option and add useEffect hook 🔧 fix: Pages mutation on component mount Dec 22, 2023
In the `packages/editor/core/src/ui/extensions/index.tsx` file, the code for inline code styling in the CoreEditorExtensions component has been updated. Previously, it was set to `false`, but now it is defined as an object with specific HTML attributes. The code styling includes a rounded-md background, custom primary color, margin, padding, font styling, and disabling spellcheck. This change improves the visual appearance and readability of inline code elements in the editor.
@sriramveeraghanta sriramveeraghanta changed the base branch from preview to develop December 26, 2023 07:44
@sriramveeraghanta sriramveeraghanta added this to the v0.15-dev milestone Dec 26, 2023
@sriramveeraghanta sriramveeraghanta merged commit 0a617ee into develop Dec 26, 2023
3 of 5 checks passed
@sriramveeraghanta sriramveeraghanta deleted the fix/coming-back-to-page-post-change branch December 26, 2023 11:15
@Palanikannan1437 Palanikannan1437 changed the title 🔧 fix: Pages mutation on component mount fix: Pages mutation on component mount Jan 31, 2024
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