Skip to content

Instantly share code, notes, and snippets.

@dgreene1
Last active June 10, 2020 13:08
Show Gist options
  • Save dgreene1/2cd356e60cf909e59542f688dc9f7e44 to your computer and use it in GitHub Desktop.
Save dgreene1/2cd356e60cf909e59542f688dc9f7e44 to your computer and use it in GitHub Desktop.
on-premise out-of-date problem / forward compatible problem (what happens if a user hits the ui.2022.tsx page but it calls the server.2018.ts backend?)
export const getEndpoint = () => {
res.send({
id: 1,
name: "Bob Smith",
age: 33,
})
}
export const getEndpoint = () => {
res.send({
id: 1,
name: "Bob Smith",
age: 33,
address: "555 Hollywood Drive"
})
}
export const userProfileWidget = (user) => {
return <div>
<span>Name: {user.name}</span>
<span>Age: {user.age}</span>
</div>
}
export const userProfileWidget = (user) => {
return <div>
<span>Name: {user.name}</span>
<span>Age: {user.age}</span>
<span>Address: {user.address}</span> // If this UI hits to 2018 backend, this will print "Address: undefined"
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment