Skip to content

chore: expose resource as prop, but value handled in state - #321

Draft
michael-small wants to merge 3 commits into
ngrx-toolkit:feat-withResource-take-Resource-typefrom
michael-small:feat-generate-resource-as-prop
Draft

michael-small wants to merge 3 commits into
ngrx-toolkit:feat-withResource-take-Resource-typefrom
michael-small:feat-generate-resource-as-prop

Conversation

@michael-small

Copy link
Copy Markdown
Collaborator

For context, see the notes in the demo component with-resource-component, rather than duplicate said description.

@rainerhahnekamp this is the definite proposal to make, but based on the top of the outstanding open PR for adding more resource types than ResourceRef. This draft hasn't been fully tested/vetted in practice at this point, but the types and points to be made line up as you can see in practice in the demo component notes as I see the long term vision.

@michael-small michael-small self-assigned this Oct 25, 2026
@michael-small michael-small added enhancement New feature or request question Further information is requested labels Oct 25, 2026
Comment thread .husky/commit-msg
@@ -1,2 +1,2 @@

pnpm --no -- commitlint --edit ${1}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ignore. I was having pnpm issues and this suddenly was giving me issues, I will likely revert this.

Comment thread .vscode/tasks.json
@@ -0,0 +1,28 @@
{

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ignore. This is just convenient when working on this. Will later remove.


constructor() {
effect(() => {
// Four things

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is the heart of this draft right now, the proposed points. The actual implementation and tests are a bit rough and sparse, but I was able to have the intended experience while drafting this code up in its current state in the demo.

@michael-small michael-small changed the title chore: expose resource w/o set/update as prop chore: expose resource as prop, but value handled in state Oct 25, 2026
@michael-small
michael-small changed the base branch from feat-withResource-take-Resource-type to main November 14, 2026 16:45
@michael-small
michael-small force-pushed the feat-generate-resource-as-prop branch from ddea05a to eca80cb Compare November 14, 2026 17:19
@michael-small
michael-small changed the base branch from main to feat-withResource-take-Resource-type November 14, 2026 17:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant