Home How to handle duplicated data at backend and frontend
Reply: 0

How to handle duplicated data at backend and frontend

Oskar Wo┼║niak
1#
Oskar Wo┼║niak Published in 2017-12-07 08:30:53Z

Problem - Example

  • We are having list of accounts at website.

  • Those accounts have statuses (close, open, validated)

  • We need to do something at frontend depending on account state.

Problem Question

Because of it we are having those statuses in backend

enum AccountStatuses{
close, open, validated
}

and also at front end side

close='close'
open='open'
validated='validated'

If we change data at backend we wont have refreshed data at frontend.

Is there way to handle such case?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300631 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO