DEV and PROD problem #4300
BelikSergey
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Here's my problem:
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
import { useEffect } from "react";
import lexical, { $getSelection, $getRoot, $isRangeSelection, COMMAND_PRIORITY_HIGH } from "lexical";
const ALLOWED_EVENTS = [lexical.KEY_BACKSPACE_COMMAND, lexical.KEY_TAB_COMMAND];
export default function PreventBackspaceAndShiftTabInFirstPosition({ }: Props) {
const [editor] = useLexicalComposerContext();
useEffect(() => {
const unregisterCommandListeners = new Set<() => void>();
}
I created a plugin according to your instructions and everything is fine - it does everything I need on DEV, but when I upload it to PROD, it doesn't work. I spent two days changing COMMAND_PRIORITY and trying other things, but it works on DEV and not on PROD. My search led me to
https://github.com/facebook/lexical/blob/main/packages/lexical/src/LexicalCommands.ts
where I see (and cry):
Why???? Why did you do this?
Beta Was this translation helpful? Give feedback.
All reactions