Skip to content

Use update_fx in sample because that's what the documentation says to do#79

Open
colinta wants to merge 1 commit into
vercel-labs:mainfrom
colinta:patch-1
Open

Use update_fx in sample because that's what the documentation says to do#79
colinta wants to merge 1 commit into
vercel-labs:mainfrom
colinta:patch-1

Conversation

@colinta

@colinta colinta commented Jul 9, 2026

Copy link
Copy Markdown

Did I misread the docs?

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@colinta is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

const Effects = native_sdk.UiApp(Model, Msg).Effects;

pub fn update(model: *Model, msg: Msg, fx: *Effects) void {
pub fn update_fx(model: *Model, msg: Msg, fx: *Effects) void {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
pub fn update_fx(model: *Model, msg: Msg, fx: *Effects) void {
pub fn update(model: *Model, msg: Msg, fx: *Effects) void {

Sample function incorrectly renamed to update_fx, conflating the Options field key .update_fx with the function's identifier

Fix on Vercel

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