Skip to content

Answer: 59#1267

Closed
kevinagus wants to merge 1 commit intotomalaforge:mainfrom
kevinagus:59-content-projection-defer
Closed

Answer: 59#1267
kevinagus wants to merge 1 commit intotomalaforge:mainfrom
kevinagus:59-content-projection-defer

Conversation

@kevinagus
Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added 59 defer answer answer labels Apr 2, 2025
{
injector: this.#injector,
},
);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very imperative, you could use a condition to trigger or not the request inside httpRessource.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep definitely I'll add a function to get a dynamic URL with a ternary condition

expanded = output<boolean>();
constructor() {
effect(() => {
this.expanded.emit(this.isExpanded());
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using effect to trigger an output is often a sign of a bad design

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

understood, I'll set a callback function for the button click instead

@kevinagus kevinagus force-pushed the 59-content-projection-defer branch from c85b2c6 to 5b6b267 Compare April 4, 2025 08:18
@kevinagus kevinagus force-pushed the 59-content-projection-defer branch from 5b6b267 to 5f8c1b2 Compare April 4, 2025 08:30
@github-actions
Copy link
Copy Markdown

This pull request is stale because it has been open for 15 days with no activity.

@github-actions github-actions Bot added the stale label Apr 25, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2025

This pull request was closed because it has been inactive for 5 days since being marked as stale.

@github-actions github-actions Bot closed this May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants