Skip to content

Refactor customization rendering in capabilities.md#26

Open
Ludovic-Iafrate wants to merge 1 commit into
masterfrom
Ludovic-Iafrate-patch-2
Open

Refactor customization rendering in capabilities.md#26
Ludovic-Iafrate wants to merge 1 commit into
masterfrom
Ludovic-Iafrate-patch-2

Conversation

@Ludovic-Iafrate

Copy link
Copy Markdown

Wrong render() API call in both code examples — lines 101–110 and 117–131

Both examples under "Usage Example" and "Checking User Authentication Status" use: render(targets.HEADER, placement.AFTER, components.Message({...}));

Problems:

  • placement.AFTER doesn't exist — the valid values are ABOVE, UNDER, LEFT, RIGHT, REPLACE
  • Wrong call signature — render() takes an object { placement, target, toRender }, not positional arguments
  • constants is missing from the destructuring — const { Kind } = constants; is used inside but constants is not in ({ render, targets, placement, components })

Wrong render() API call in both code examples — lines 101–110 and 117–131

Both examples under "Usage Example" and "Checking User Authentication Status" use:
render(targets.HEADER, placement.AFTER, components.Message({...}));

Problems:
- placement.AFTER doesn't exist — the valid values are ABOVE, UNDER, LEFT, RIGHT, REPLACE
- Wrong call signature — render() takes an object { placement, target, toRender }, not positional arguments
- constants is missing from the destructuring — const { Kind } = constants; is used inside but constants is not in ({ render, targets, placement, components })
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.

1 participant