All SmartDashboard/Shuffleboard implementation should follow the new NetworkTables 4 API (https://docs.wpilib.org/en/stable/docs/software/networktables/nt4-migration-guide.html). Using the old NetworkTables 3 APIs seem to be less stable, where values on SmartDashboard/Shuffleboard/Glass will sometimes not update after redeploying code or disconnecting/reconnecting the robot.
Current ideas:
All SmartDashboard/Shuffleboard implementation should follow the new NetworkTables 4 API (https://docs.wpilib.org/en/stable/docs/software/networktables/nt4-migration-guide.html). Using the old NetworkTables 3 APIs seem to be less stable, where values on SmartDashboard/Shuffleboard/Glass will sometimes not update after redeploying code or disconnecting/reconnecting the robot.